@oscarpalmer/atoms 0.135.0 → 0.136.0
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/dist/atoms.full.js +18 -0
- package/dist/queue.js +18 -0
- package/package.json +1 -1
- package/src/queue.ts +21 -0
- package/types/queue.d.ts +12 -0
package/dist/atoms.full.js
CHANGED
|
@@ -2135,6 +2135,18 @@ var Queue = class {
|
|
|
2135
2135
|
return this.#runners > 0;
|
|
2136
2136
|
}
|
|
2137
2137
|
/**
|
|
2138
|
+
* Does the queue automatically start when the first item is added?
|
|
2139
|
+
*/
|
|
2140
|
+
get autostart() {
|
|
2141
|
+
return this.#options.autostart;
|
|
2142
|
+
}
|
|
2143
|
+
/**
|
|
2144
|
+
* Maximum number of runners to process the queue concurrently
|
|
2145
|
+
*/
|
|
2146
|
+
get concurrency() {
|
|
2147
|
+
return this.#options.concurrency;
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2138
2150
|
* Is the queue empty?
|
|
2139
2151
|
*/
|
|
2140
2152
|
get empty() {
|
|
@@ -2147,6 +2159,12 @@ var Queue = class {
|
|
|
2147
2159
|
return this.#options.maximum > 0 && this.#items.length >= this.#options.maximum;
|
|
2148
2160
|
}
|
|
2149
2161
|
/**
|
|
2162
|
+
* Maximum number of items allowed in the queue
|
|
2163
|
+
*/
|
|
2164
|
+
get maximum() {
|
|
2165
|
+
return this.#options.maximum;
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2150
2168
|
* Is the queue paused?
|
|
2151
2169
|
*/
|
|
2152
2170
|
get paused() {
|
package/dist/queue.js
CHANGED
|
@@ -13,6 +13,18 @@ var Queue = class {
|
|
|
13
13
|
return this.#runners > 0;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
+
* Does the queue automatically start when the first item is added?
|
|
17
|
+
*/
|
|
18
|
+
get autostart() {
|
|
19
|
+
return this.#options.autostart;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Maximum number of runners to process the queue concurrently
|
|
23
|
+
*/
|
|
24
|
+
get concurrency() {
|
|
25
|
+
return this.#options.concurrency;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
16
28
|
* Is the queue empty?
|
|
17
29
|
*/
|
|
18
30
|
get empty() {
|
|
@@ -25,6 +37,12 @@ var Queue = class {
|
|
|
25
37
|
return this.#options.maximum > 0 && this.#items.length >= this.#options.maximum;
|
|
26
38
|
}
|
|
27
39
|
/**
|
|
40
|
+
* Maximum number of items allowed in the queue
|
|
41
|
+
*/
|
|
42
|
+
get maximum() {
|
|
43
|
+
return this.#options.maximum;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
28
46
|
* Is the queue paused?
|
|
29
47
|
*/
|
|
30
48
|
get paused() {
|
package/package.json
CHANGED
package/src/queue.ts
CHANGED
|
@@ -24,6 +24,20 @@ class Queue<CallbackParameters extends Parameters<GenericAsyncCallback>, Callbac
|
|
|
24
24
|
return this.#runners > 0;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Does the queue automatically start when the first item is added?
|
|
29
|
+
*/
|
|
30
|
+
get autostart(): boolean {
|
|
31
|
+
return this.#options.autostart;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Maximum number of runners to process the queue concurrently
|
|
36
|
+
*/
|
|
37
|
+
get concurrency(): number {
|
|
38
|
+
return this.#options.concurrency;
|
|
39
|
+
}
|
|
40
|
+
|
|
27
41
|
/**
|
|
28
42
|
* Is the queue empty?
|
|
29
43
|
*/
|
|
@@ -38,6 +52,13 @@ class Queue<CallbackParameters extends Parameters<GenericAsyncCallback>, Callbac
|
|
|
38
52
|
return this.#options.maximum > 0 && this.#items.length >= this.#options.maximum;
|
|
39
53
|
}
|
|
40
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Maximum number of items allowed in the queue
|
|
57
|
+
*/
|
|
58
|
+
get maximum(): number {
|
|
59
|
+
return this.#options.maximum;
|
|
60
|
+
}
|
|
61
|
+
|
|
41
62
|
/**
|
|
42
63
|
* Is the queue paused?
|
|
43
64
|
*/
|
package/types/queue.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ declare class Queue<CallbackParameters extends Parameters<GenericAsyncCallback>,
|
|
|
5
5
|
* Is the queue active?
|
|
6
6
|
*/
|
|
7
7
|
get active(): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Does the queue automatically start when the first item is added?
|
|
10
|
+
*/
|
|
11
|
+
get autostart(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum number of runners to process the queue concurrently
|
|
14
|
+
*/
|
|
15
|
+
get concurrency(): number;
|
|
8
16
|
/**
|
|
9
17
|
* Is the queue empty?
|
|
10
18
|
*/
|
|
@@ -13,6 +21,10 @@ declare class Queue<CallbackParameters extends Parameters<GenericAsyncCallback>,
|
|
|
13
21
|
* Is the queue full?
|
|
14
22
|
*/
|
|
15
23
|
get full(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum number of items allowed in the queue
|
|
26
|
+
*/
|
|
27
|
+
get maximum(): number;
|
|
16
28
|
/**
|
|
17
29
|
* Is the queue paused?
|
|
18
30
|
*/
|