MCPcopy Create free account
hub / github.com/easychen/github-action-server-chan / wait

Function wait

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

Source from the content-addressed store, hash-verified

1export async function wait(milliseconds: number): Promise<string> {
2 return new Promise(resolve => {
3 if (isNaN(milliseconds)) {
4 throw new Error('milliseconds not a number')
5 }
6
7 setTimeout(() => resolve('done!'), milliseconds)
8 })
9}

Callers 1

main.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected