sleep() to utils
This commit is contained in:
parent
e6b1370f71
commit
5890192751
3
src/common/js/utils.js
Normal file
3
src/common/js/utils.js
Normal file
@ -0,0 +1,3 @@
|
||||
export async function sleep(timeout) {
|
||||
return new Promise( (resolve, reject) => setTimeout(() => resolve(), timeout));
|
||||
}
|
Loading…
Reference in New Issue
Block a user