perf: remove unneeded class indirection for dynamic pool in worker
[poolifier.git] / src / pools / pool-internal.ts
index 806107ec74ea29402408abaf3cf95a8f0325581c..2d92f2f0c48dac3c25a190aefa5485cde5f8715e 100644 (file)
@@ -34,8 +34,8 @@ export interface WorkerType<Worker extends IPoolWorker> {
  * Internal contract definition for a poolifier pool.
  *
  * @typeParam Worker - Type of worker which manages this pool.
- * @typeParam Data - Type of data sent to the worker.
- * @typeParam Response - Type of response of execution.
+ * @typeParam Data - Type of data sent to the worker. This can only be serializable data.
+ * @typeParam Response - Type of response of execution. This can only be serializable data.
  */
 export interface IPoolInternal<
   Worker extends IPoolWorker,