mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-18 15:31:54 +00:00
Initial commit
This commit is contained in:
commit
35f6329d75
25 changed files with 17897 additions and 0 deletions
9
src/wait.ts
Normal file
9
src/wait.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export async function wait(milliseconds: number): Promise<string> {
|
||||
return new Promise(resolve => {
|
||||
if (isNaN(milliseconds)) {
|
||||
throw new Error('milliseconds not a number')
|
||||
}
|
||||
|
||||
setTimeout(() => resolve('done!'), milliseconds)
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue