clearTimeout method

  1. @VoltronMethod(kFuncClearTimeout)
bool clearTimeout(
  1. String callId,
  2. JSPromise promise
)

Implementation

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