You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,12 @@ How many tasks are currently in the queue.
74
74
How many tasks have finished in total.
75
75
76
76
### TimeQueue#push(data..., [callback])
77
-
Pushes a new task to the queue. Any number of arguments can be given. An optional callback can also be given as the last parameter. The callback will be called when the task is finished or if there was any error.
77
+
Pushes a new task to the queue. Any number of arguments can be given. An optional callback can also be given as the last parameter. The callback will be called when the task is finished or if there was any error running the worker.
78
+
79
+
If the queue is full, pushed tasks will be ignored.
80
+
81
+
### TimeQueue#isFull()
82
+
Returns true if queue is full.
78
83
79
84
### TimeQueue#die()
80
85
Empties queue and clears the timeouts TimeQueue sets to keep track of running tasks. Currently running tasks will still complete.
0 commit comments