MCPcopy Create free account
hub / github.com/FongMi/TV / cancel

Method cancel

quickjs/src/main/java/com/fongmi/quickjs/method/Global.java:251–255  ·  view source on GitHub ↗
(Integer id)

Source from the content-addressed store, hash-verified

249 }
250
251 private void cancel(Integer id) {
252 if (id == null) return;
253 Timeout timeout = timers.remove(id);
254 if (timeout != null) timeout.cancelAndRelease();
255 }
256
257 private class Timeout extends TimerTask {
258

Callers 6

clearTimeoutMethod · 0.95
scheduleMethod · 0.95
destroyMethod · 0.45
runMethod · 0.45
fireMethod · 0.45
cancelAndReleaseMethod · 0.45

Calls 2

cancelAndReleaseMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected