Add `sleep` module
parent
08f73b8420
commit
21147a20a0
@ -0,0 +1,4 @@
|
||||
/* global setTimeout */
|
||||
|
||||
exports.sleep = ms =>
|
||||
new Promise(resolve => setTimeout(resolve, ms));
|
Loading…
Reference in New Issue