MCPcopy Create free account
hub / github.com/actions/typescript-action / wait

Function wait

src/wait.ts:7–13  ·  view source on GitHub ↗
(milliseconds: number)

Source from the content-addressed store, hash-verified

5 * @returns Resolves with 'done!' after the wait is over.
6 */
7export async function wait(milliseconds: number): Promise<string> {
8 return new Promise((resolve) => {
9 if (isNaN(milliseconds)) throw new Error('milliseconds is not a number')
10
11 setTimeout(() => resolve('done!'), milliseconds)
12 })
13}

Callers 2

runFunction · 0.85
wait.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected