]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/core-utils/common/time.ts
Move test functions outside extra-utils
[github/Chocobozzz/PeerTube.git] / shared / core-utils / common / time.ts
diff --git a/shared/core-utils/common/time.ts b/shared/core-utils/common/time.ts
new file mode 100644 (file)
index 0000000..2992609
--- /dev/null
@@ -0,0 +1,7 @@
+function wait (milliseconds: number) {
+  return new Promise(resolve => setTimeout(resolve, milliseconds))
+}
+
+export {
+  wait
+}