clearTimeout method

void clearTimeout(
  1. String vmId,
  2. int timeoutId
)

Implementation

void clearTimeout(String vmId, int timeoutId) {
  final Map<int, JSTimeout>? cache = _globalCache[vmId];
  if (cache?.isNotEmpty ?? false) {
    final JSTimeout? timeout = cache!.remove(timeoutId);
    timeout?.dispose();
  }
}