MCPcopy Index your code
hub / github.com/subquery/subql / delay

Function delay

packages/cli/src/utils/utils.ts:27–31  ·  view source on GitHub ↗
(sec: number)

Source from the content-addressed store, hash-verified

25import {ACCESS_TOKEN_PATH} from '../constants';
26
27export async function delay(sec: number): Promise<void> {
28 return new Promise((resolve) => {
29 setTimeout(resolve, sec * 1000);
30 });
31}
32
33export async function valueOrPrompt(
34 value: string | undefined,

Calls

no outgoing calls

Tested by

no test coverage detected