Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
8
const
generateKey = (prefix: string) => `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2)}`;
9
10
const
nextTick = () => Promise.resolve();
11
/** 强制执行所有已入队微任务与 then 链 */
12
const
flush =
async
() => {
13
await
nextTick();
Callers
1
flush
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected