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: src/worker/abstract-worker.ts
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ export abstract class AbstractWorker<
58
58
/**
59
59
* Worker id.
60
60
*/
61
-
protectedabstractid: string
61
+
protectedabstractid?: string
62
62
/**
63
63
* Task function(s) processed by the worker when the pool's `execution` function is invoked.
64
64
*/
@@ -77,23 +77,29 @@ export abstract class AbstractWorker<
77
77
protectedactiveInterval?: number
78
78
/**
79
79
* Constructs a new poolifier worker.
80
-
*
80
+
*@param isMain - Whether this is the main worker or not.
81
81
* @param mainWorker - Reference to main worker.
82
82
* @param taskFunctions - Task function(s) processed by the worker when the pool's `execution` function is invoked. The first function is the default function.
0 commit comments