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

Function sleep

src/pkg/utils/utils.ts:160–164  ·  view source on GitHub ↗
(millis: number)

Source from the content-addressed store, hash-verified

158}
159
160export function sleep(millis: number) {
161 return new Promise((resolve) => {
162 setTimeout(resolve, millis);
163 });
164}
165
166export function getStorageName(script: Script | TScriptInfo): string {
167 const storagename = script.metadata?.storagename;

Callers 5

NetDiskFunction · 0.90
connectMethod · 0.90
scriptImportAsyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected