ziko 0.49.1 → 0.49.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +0,0 @@
1
- export const sleep= ms => new Promise(res => setTimeout(res, ms));
2
-
3
- // use it with await
@@ -1,15 +0,0 @@
1
- export function timeout(ms, fn) {
2
- let id;
3
- const promise = new Promise((resolve) => {
4
- id = setTimeout(() => {
5
- if (fn) fn();
6
- resolve();
7
- }, ms);
8
- });
9
-
10
- return {
11
- id,
12
- clear: () => clearTimeout(id),
13
- promise
14
- };
15
- }