X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Ftypes%2FTaskAsyncFunction.html;h=fd862585a4108d594bd82631a4df1651f80ccfbc;hb=003ff992a2f325ea7a8bb0861ec0ee59424ecc01;hp=63d61da2f22a1e59a10dcb3ead59f24388cb1f85;hpb=b697a477e1e0959b4519424d7cd5e59a491798d8;p=poolifier.git diff --git a/docs/types/TaskAsyncFunction.html b/docs/types/TaskAsyncFunction.html index 63d61da2..fd862585 100644 --- a/docs/types/TaskAsyncFunction.html +++ b/docs/types/TaskAsyncFunction.html @@ -1,7 +1,7 @@ -TaskAsyncFunction | poolifier - v4.0.5

Type alias TaskAsyncFunction<Data, Response>

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

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

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