Add sleep module

This commit is contained in:
Daniel Gasienica 2018-03-28 17:13:11 -04:00
parent 08f73b8420
commit 21147a20a0

4
js/modules/sleep.js Normal file
View file

@ -0,0 +1,4 @@
/* global setTimeout */
exports.sleep = ms =>
new Promise(resolve => setTimeout(resolve, ms));