/**
* Task synchronous function that can be executed.
- *
* @param data - Data sent to the worker.
* @returns Execution response.
- *
* @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.
*/
/**
* Task asynchronous function that can be executed.
* This function must return a promise.
- *
* @param data - Data sent to the worker.
* @returns Execution response promise.
- *
* @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.
*/
/**
* Task function that can be executed.
* This function can be synchronous or asynchronous.
- *
* @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.
*/
/**
* Task function object.
- *
* @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.
*/
/**
* Tasks functions that can be executed.
* The key is the name of the task function or task function object.
- * The value is the function or task function object.
- *
+ * The value is the task function or task function object.
* @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 type TaskFunctions<Data = unknown, Response = unknown> = Record<
-string,
-TaskFunction<Data, Response> | TaskFunctionObject<Data, Response>
+ string,
+ TaskFunction<Data, Response> | TaskFunctionObject<Data, Response>
>
/**