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

Method createTimeout

quickjs/src/main/java/com/fongmi/quickjs/method/Global.java:229–235  ·  view source on GitHub ↗
(JSFunction func)

Source from the content-addressed store, hash-verified

227 }
228
229 private Timeout createTimeout(JSFunction func) {
230 if (func == null || destroyed) return null;
231 Timeout timeout = new Timeout(timerId.incrementAndGet(), func);
232 timers.put(timeout.id, timeout);
233 func.hold();
234 return timeout;
235 }
236
237 private boolean schedule(Timeout timeout, Integer delay) {
238 try {

Callers 1

setTimeoutMethod · 0.95

Calls 1

putMethod · 0.45

Tested by

no test coverage detected