MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / waitForEventLoop

Function waitForEventLoop

example/tests/sandbox_test.js:110–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 function waitForEventLoop() {
111 return new Promise((resolve) => setTimeout(resolve, 0));
112 }
113
114 function withTimeout(promise, label, ms = 5000) {
115 let timer = null;

Callers 1

sandbox_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected