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

Function flush

src/pkg/utils/async_queue.test.ts:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const nextTick = () => Promise.resolve();
11/** 强制执行所有已入队微任务与 then 链 */
12const flush = async () => {
13 await nextTick();
14 await nextTick();
15 await nextTick();
16};
17
18/** 为 key 设置一个「永远阻塞」的任务,供手动放行 */
19const setupBlockingTask = (key: any) => {

Callers 1

Calls 1

nextTickFunction · 0.70

Tested by

no test coverage detected