* Selects the next worker in a round robin fashion.
*
* @typeParam Worker - Type of worker which manages the strategy.
- * @typeParam Data - Type of data sent to the worker. This can only be serializable data.
- * @typeParam Response - Type of execution response. This can only be serializable data.
+ * @typeParam Data - Type of data sent to the worker. This can only be structured-cloneable data.
+ * @typeParam Response - Type of execution response. This can only be structured-cloneable data.
*/
export class RoundRobinWorkerChoiceStrategy<
Worker extends IWorker,
useDynamicWorker: true
}
- /**
- * Id of the next worker node.
- */
- private nextWorkerNodeId: number = 0
-
/** @inheritDoc */
public constructor (
pool: IPool<Worker, Data, Response>,