aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/async-helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/async-helpers.ts')
-rw-r--r--src/helpers/async-helpers.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/async-helpers.ts b/src/helpers/async-helpers.ts
new file mode 100644
index 000000000..aae3c3928
--- /dev/null
+++ b/src/helpers/async-helpers.ts
@@ -0,0 +1,5 @@
1/* eslint-disable import/prefer-default-export */
2
3export function sleep(ms: number = 0) {
4 return new Promise((r) => setTimeout(r, ms));
5}