poolifier - v6.0.2
    Preparing search index...

    Type Alias TaskFunction<Data, Response>

    TaskFunction: (data?: Data) => PromiseLike<Response> | Response

    Task function that can be executed. This function can return a value, a promise or another thenable.

    Type Parameters

    • Data = unknown

      Type of data sent to the worker. This can only be structured-cloneable data.

    • Response = unknown

      Type of execution response. This can only be structured-cloneable data.

    Type Declaration