clearInterval method

  1. @VoltronMethod(kFuncClearInterval)
bool clearInterval(
  1. String callId,
  2. JSPromise promise
)

Implementation

@VoltronMethod(kFuncClearInterval)
bool clearInterval(String callId, JSPromise promise) {
  var task = _timeInfo[callId];
  task?.stop();
  _timeInfo.remove(callId);
  return false;
}