/**
* 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.
*/
* 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.
*/
string,
TaskFunction<Data, Response>
>
+
+/**
+ * Task function operation result.
+ */
+export interface TaskFunctionOperationResult {
+ status: boolean
+ error?: Error
+}