better Util.sleep signature
This commit is contained in:
parent
cb899d92a0
commit
0af021bd32
@ -91,8 +91,8 @@ export default class Util {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** waits a number of MS before continuing */
|
/** waits a number of MS before continuing */
|
||||||
static async sleep(ms: number): Promise<unknown> {
|
static async sleep(ms: number): Promise<void> {
|
||||||
return await new Promise(resolve => {
|
await new Promise(resolve => {
|
||||||
setTimeout(resolve, ms);
|
setTimeout(resolve, ms);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user