Type alias WorkerSyncFunction<Data, Response>

WorkerSyncFunction<Data, Response>: ((data?) => Response)

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.

Type declaration

    • (data?): Response
    • Worker synchronous function that can be executed.

      Parameters

      • Optional data: Data

      Returns Response

Generated using TypeDoc