diff --git a/js/modules/sleep.js b/js/modules/sleep.js new file mode 100644 index 00000000000..4cc0fc61f07 --- /dev/null +++ b/js/modules/sleep.js @@ -0,0 +1,4 @@ +/* global setTimeout */ + +exports.sleep = ms => + new Promise(resolve => setTimeout(resolve, ms));