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

Function generateKey

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected