Add sleep
module
This commit is contained in:
parent
08f73b8420
commit
21147a20a0
1 changed files with 4 additions and 0 deletions
4
js/modules/sleep.js
Normal file
4
js/modules/sleep.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
/* global setTimeout */
|
||||
|
||||
exports.sleep = ms =>
|
||||
new Promise(resolve => setTimeout(resolve, ms));
|
Loading…
Reference in a new issue