aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/async-helpers.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-15 17:15:09 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-15 13:54:00 +0000
commitbc76d19c6f5687dd18c96db249e0abe7ad79a673 (patch)
treed4e977f99be77d723ce93bb3866468d8b63ec038 /src/helpers/async-helpers.ts
parentchore: npm upgrades (diff)
downloadferdium-app-bc76d19c6f5687dd18c96db249e0abe7ad79a673.tar.gz
ferdium-app-bc76d19c6f5687dd18c96db249e0abe7ad79a673.tar.zst
ferdium-app-bc76d19c6f5687dd18c96db249e0abe7ad79a673.zip
chore: typescript conversion of some minor utilities
Also removed 'targz' unused package from runtime.
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}