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

Method postCallback

quickjs/src/main/java/com/fongmi/quickjs/method/Global.java:215–219  ·  view source on GitHub ↗
(JSFunction callback, Runnable runnable)

Source from the content-addressed store, hash-verified

213 }
214
215 private boolean postCallback(JSFunction callback, Runnable runnable) {
216 boolean posted = submit(() -> callAndRelease(callback, runnable));
217 if (!posted) callback.release();
218 return posted;
219 }
220
221 private void callAndRelease(JSFunction callback, Runnable runnable) {
222 try {

Callers 2

completeSuccessMethod · 0.95
completeErrorMethod · 0.95

Calls 3

submitMethod · 0.95
callAndReleaseMethod · 0.95
releaseMethod · 0.65

Tested by

no test coverage detected