删除example文件
Continuous Integration / GitHub Actions Test (push) Failing after 6s
Details
Continuous Integration / GitHub Actions Test (push) Failing after 6s
Details
This commit is contained in:
parent
9184df603f
commit
b308ef4afc
14
src/wait.ts
14
src/wait.ts
|
@ -1,14 +0,0 @@
|
|||
/**
|
||||
* Wait for a number of milliseconds.
|
||||
* @param milliseconds The number of milliseconds to wait.
|
||||
* @returns {Promise<string>} Resolves with 'done!' after the wait is over.
|
||||
*/
|
||||
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…
Reference in New Issue