X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Ftypes%2FTaskAsyncFunction.html;h=4f0357c9fd61ef9f2a62881f9909b897020b6533;hb=85de1563849907302a372b5da416e5cb15c23307;hp=d47d492ac16dc9abd5f34e397939eef684c4f510;hpb=0de45de915a4d9feb7e1cb3b37bb416926a40b4b;p=poolifier.git diff --git a/docs/types/TaskAsyncFunction.html b/docs/types/TaskAsyncFunction.html index d47d492a..4f0357c9 100644 --- a/docs/types/TaskAsyncFunction.html +++ b/docs/types/TaskAsyncFunction.html @@ -1,7 +1,7 @@ -TaskAsyncFunction | poolifier - v4.0.1

Type alias TaskAsyncFunction<Data, Response>

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

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

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