Add sleep
module
This commit is contained in:
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));
|
Reference in New Issue
Block a user