X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fabstract-pool.ts;h=0435a32c47067442af13cde6773a7831754e516f;hb=deb85c12b77faf6974551cefcd9676e62a392086;hp=c951c6f23792ea631b8804e11c7ff25719ce5fa5;hpb=c510fea7f620c9b406f1b3f655729ad83ed32c2b;p=poolifier.git diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index c951c6f2..0435a32c 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -94,8 +94,8 @@ class PoolEmitter extends EventEmitter {} * Base class containing some shared logic for all poolifier pools. * * @template Worker Type of worker which manages this pool. - * @template Data Type of data sent to the worker. - * @template Response Type of response of execution. + * @template Data Type of data sent to the worker. This can only be serializable data. + * @template Response Type of response of execution. This can only be serializable data. */ export abstract class AbstractPool< Worker extends IWorker, @@ -168,7 +168,7 @@ export abstract class AbstractPool< /** * Perform the task specified in the constructor with the data parameter. * - * @param data The input for the specified task. + * @param data The input for the specified task. This can only be serializable data. * @returns Promise that will be resolved when the task is successfully completed. */ public execute (data: Data): Promise {