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 */
|
||||
static async sleep(ms: number): Promise<unknown> {
|
||||
return await new Promise(resolve => {
|
||||
static async sleep(ms: number): Promise<void> {
|
||||
await new Promise(resolve => {
|
||||
setTimeout(resolve, ms);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user