X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FQueue.html;h=1ef88aea69b6df25126a9110fa30b7e8844c0cae;hb=f4ff239c096df6dfb39c94eb3f83fd070d3d85d8;hp=7e7e86a7d2168496a6021096066eb12dc881c9cd;hpb=71056a0ac555e096c1428d6341ef45c7980a6332;p=poolifier.git diff --git a/docs/classes/Queue.html b/docs/classes/Queue.html index 7e7e86a7..1ef88aea 100644 --- a/docs/classes/Queue.html +++ b/docs/classes/Queue.html @@ -1,4 +1,4 @@ -
Private
headPrivate
itemsPrivate
maxPrivate
tailGenerated using TypeDoc
Get the maximum size of the queue.
+The maximum size of the queue.
Returns number
The maximum size of the queue.
--- Defined in src/queue.ts:37
+Private
offset+- Defined in src/queue.ts:10
size
+The size of the queue.
++- Defined in src/queue.ts:12
Methods
+[iterator]
-- get size(): number
+- [iterator](): Iterator<T, any, undefined>
-
-
-
+
+
+
+
-
-- Defined in src/queue.ts:68
+- Defined in src/queue.ts:40
+- Defined in src/queue.ts:26
- peek(): undefined | T
-
-
-
+ - Defined in src/queue.ts:58
@@ -188,17 +191,17 @@
- constructor
-- head
- items
-- max
-- tail
-- max
Size
-- size
+- max
Size
+- offset
+- size
+- [iterator]
+- clear
- dequeue
- enqueue
- peek
-
+ - Worker
Types
+- available
Parallelism
Get the size of the queue.
+Returns an iterator for the queue.
Returns number
The size of the queue.
+Returns Iterator<T, any, undefined>
An iterator for the queue.
+See
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
++- Defined in src/queue.ts:81
clear
++- clear(): void
+-
+
+
Clears the queue.
+Returns void
-- Defined in src/queue.ts:27
Methods
+dequeue
@@ -136,7 +138,7 @@
-- Defined in src/queue.ts:59
enqueue
@@ -156,18 +158,19 @@
-- Defined in src/queue.ts:47
peek
Peek at the first item.
+Peeks at the first item.
Returns undefined | T
+Returns undefined | T
The first item or
+undefined
if the queue is empty.-- Defined in src/queue.ts:75