sleep() to utils

This commit is contained in:
Tamius Han 2020-01-30 23:15:08 +01:00
parent e6b1370f71
commit 5890192751

3
src/common/js/utils.js Normal file
View File

@ -0,0 +1,3 @@
export async function sleep(timeout) {
return new Promise( (resolve, reject) => setTimeout(() => resolve(), timeout));
}