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

Method consume

quickjs/src/main/java/com/fongmi/quickjs/utils/Async.java:66–73  ·  view source on GitHub ↗
(JSFunction func, JSCallFunction callback)

Source from the content-addressed store, hash-verified

64 }
65
66 private void consume(JSFunction func, JSCallFunction callback) {
67 if (func == null) return;
68 try {
69 func.call(callback);
70 } finally {
71 func.release();
72 }
73 }
74
75}

Callers 1

thenMethod · 0.95

Calls 2

releaseMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected