mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
timer utility
This commit is contained in:
parent
7e52728dc0
commit
ae8a59cf9b
@ -490,6 +490,10 @@ function errorMessage(e) {
|
||||
return e;
|
||||
}
|
||||
|
||||
async function timer(ms) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
joinPath,
|
||||
dirname,
|
||||
@ -532,5 +536,6 @@ module.exports = {
|
||||
sample,
|
||||
last,
|
||||
interceptLogs,
|
||||
errorMessage
|
||||
errorMessage,
|
||||
timer
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user