@cimo/queue 1.0.0 → 1.0.2
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.
- package/README.md +11 -7
- package/dist/src/Main.d.ts +2 -2
- package/dist/src/Main.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,32 +26,36 @@ Writed with native Typescript code and no dependencies are used.
|
|
|
26
26
|
```
|
|
27
27
|
...
|
|
28
28
|
|
|
29
|
-
import {
|
|
29
|
+
import { Cq } from "@cimo/queue/dist/src/Main";
|
|
30
30
|
|
|
31
31
|
...
|
|
32
32
|
|
|
33
|
-
post("/api/
|
|
34
|
-
|
|
33
|
+
post("/api/test1", () => {
|
|
34
|
+
cq.list.push(() => {
|
|
35
35
|
return new Promise((resolve) => {
|
|
36
36
|
...
|
|
37
37
|
|
|
38
38
|
resolve();
|
|
39
|
+
|
|
40
|
+
return;
|
|
39
41
|
});
|
|
40
42
|
});
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
cq.processSerial();
|
|
43
45
|
});
|
|
44
46
|
|
|
45
|
-
post("/api/
|
|
46
|
-
|
|
47
|
+
post("/api/test2", () => {
|
|
48
|
+
cq.list.push(() => {
|
|
47
49
|
return new Promise((resolve) => {
|
|
48
50
|
...
|
|
49
51
|
|
|
50
52
|
resolve();
|
|
53
|
+
|
|
54
|
+
return;
|
|
51
55
|
});
|
|
52
56
|
});
|
|
53
57
|
|
|
54
|
-
|
|
58
|
+
cq.processParallel(2);
|
|
55
59
|
});
|
|
56
60
|
|
|
57
61
|
...
|
package/dist/src/Main.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
1
|
+
export * as CqModel from "./Model.js";
|
|
2
|
+
export * as Cq from "./Service.js";
|
package/dist/src/Main.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
1
|
+
export * as CqModel from "./Model.js";
|
|
2
|
+
export * as Cq from "./Service.js";
|
|
3
3
|
//# sourceMappingURL=Main.js.map
|