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

Function nextTick

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

Source from the content-addressed store, hash-verified

8const generateKey = (prefix: string) => `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2)}`;
9
10const nextTick = () => Promise.resolve();
11/** 强制执行所有已入队微任务与 then 链 */
12const flush = async () => {
13 await nextTick();

Callers 1

flushFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected