X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPromiseResponseWrapper.html;h=d468983570a95e8cd7b5fb0fd213cb773bb10fa8;hb=224d008191f52fa20b93e1ba67919569f8d6e315;hp=f79d16eb15e25a47d67a9357a04115d1adcad73b;hpb=dea42379cfdbcf1c1c9800df7c097eab484ebc07;p=poolifier.git diff --git a/docs/interfaces/PromiseResponseWrapper.html b/docs/interfaces/PromiseResponseWrapper.html index f79d16eb..d4689835 100644 --- a/docs/interfaces/PromiseResponseWrapper.html +++ b/docs/interfaces/PromiseResponseWrapper.html @@ -1,11 +1,11 @@ -PromiseResponseWrapper | poolifier - v4.0.15

Interface PromiseResponseWrapper<Response>Internal

An object holding the task execution response promise resolve/reject callbacks.

-
interface PromiseResponseWrapper<Response> {
    asyncResource?: AsyncResource;
    reject: ((reason?) => void);
    resolve: ((value) => void);
    workerNodeKey: number;
}

Type Parameters

  • Response = unknown

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

    -

Properties

asyncResource? +PromiseResponseWrapper | poolifier - v4.0.15

Interface PromiseResponseWrapper<Response>Internal

An object holding the task execution response promise resolve/reject callbacks.

+
interface PromiseResponseWrapper<Response> {
    asyncResource?: AsyncResource;
    reject: ((reason?: unknown) => void);
    resolve: ((value: Response | PromiseLike<Response>) => void);
    workerNodeKey: number;
}

Type Parameters

  • Response = unknown

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

    +

Properties

asyncResource?: AsyncResource

The asynchronous resource used to track the task execution.

-
reject: ((reason?) => void)

Reject callback to reject the promise.

-

Type declaration

    • (reason?): void
    • Parameters

      • Optional reason: unknown

      Returns void

resolve: ((value) => void)

Resolve callback to fulfill the promise.

-

Type declaration

workerNodeKey: number

The worker node key executing the task.

-
\ No newline at end of file +

Properties

asyncResource?: AsyncResource

The asynchronous resource used to track the task execution.

+
reject: ((reason?: unknown) => void)

Reject callback to reject the promise.

+
resolve: ((value: Response | PromiseLike<Response>) => void)

Resolve callback to fulfill the promise.

+
workerNodeKey: number

The worker node key executing the task.

+
\ No newline at end of file