X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Ftypes%2FTaskAsyncFunction.html;h=055accb78c51e17375306bc50b6c132e71e881e9;hb=e8701e36c0374bf5a5be45264296575a6615c63d;hp=2e0ff826a13a9f78e07d115a9798129607c61c2a;hpb=67c6a853287d5c2df8ab115905b714e644333802;p=poolifier.git diff --git a/docs/types/TaskAsyncFunction.html b/docs/types/TaskAsyncFunction.html index 2e0ff826..055accb7 100644 --- a/docs/types/TaskAsyncFunction.html +++ b/docs/types/TaskAsyncFunction.html @@ -1,7 +1,7 @@ -TaskAsyncFunction | poolifier - v4.0.9

Type alias TaskAsyncFunction<Data, Response>

TaskAsyncFunction<Data, Response>: ((data?) => Promise<Response>)

Task asynchronous function that can be executed. +TaskAsyncFunction | poolifier - v4.0.14

Type alias TaskAsyncFunction<Data, Response>

TaskAsyncFunction<Data, Response>: ((data?) => Promise<Response>)

Task asynchronous function that can be executed. This function must return a promise.

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

    • (data?): Promise<Response>
    • Parameters

      • Optional data: Data

        Data sent to the worker.

      Returns Promise<Response>

Returns

Execution response promise.

-
\ No newline at end of file +
\ No newline at end of file