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

Function waitNext

example/tests/gm_menu_test.js:21–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20 let myResolve = () => { };
21 const waitNext = async () => {
22 await new Promise((resolve) => {
23 myResolve = () => { setTimeout(resolve, 50) };
24 });
25 };
26
27 const waitActions = async (...messages) => {
28 if (skipClickCheck) return;

Callers 1

waitActionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected