Type alias TaskFunctions<Data, Response>

TaskFunctions<Data, Response>: Record<string, WorkerFunction<Data, Response>>

Worker functions that can be executed. This object can contain synchronous or asynchronous functions. The key is the name of the function. The value is the function itself.

Type Parameters

  • Data = unknown

    Type of data sent to the worker. This can only be serializable data.

  • Response = unknown

    Type of execution response. This can only be serializable data.

Generated using TypeDoc