X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Ftask-functions.ts;h=b912f05c2f5c5d6f1032a4db3e4d353998acaca5;hb=27a8a097ad47621d1a914240d777921f129cff61;hp=353b8b0c1f8b329d71c89e6a89bbbdd921d3d548;hpb=001cc6a4bd787b8ec8efab54674789018a6b6690;p=poolifier.git diff --git a/src/worker/task-functions.ts b/src/worker/task-functions.ts index 353b8b0c..b912f05c 100644 --- a/src/worker/task-functions.ts +++ b/src/worker/task-functions.ts @@ -1,6 +1,8 @@ /** * Task synchronous function that can be executed. * + * @param data - Data sent to the worker. + * * @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. */ @@ -12,6 +14,8 @@ export type TaskSyncFunction = ( * Task asynchronous function that can be executed. * This function must return a promise. * + * @param data - Data sent to the worker. + * * @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. */ @@ -45,9 +49,9 @@ TaskFunction > /** - * Task function operation return type. + * Task function operation result. */ -export interface TaskFunctionOperationReturnType { +export interface TaskFunctionOperationResult { status: boolean error?: Error }