X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPromiseResponseWrapper.html;h=bd394414ce5fbc6bcd49a8c4885a57b6bab89b1f;hb=9aa78bcb34d9d6002c71ce3de1ece85dd164871f;hp=d510acd3cc063534542bf95c2ebec2abdef6c297;hpb=4b4e53be53af022e65e6373e2773c64baa29406c;p=poolifier.git diff --git a/docs/interfaces/PromiseResponseWrapper.html b/docs/interfaces/PromiseResponseWrapper.html index d510acd3..bd394414 100644 --- a/docs/interfaces/PromiseResponseWrapper.html +++ b/docs/interfaces/PromiseResponseWrapper.html @@ -1,9 +1,11 @@ -PromiseResponseWrapper | poolifier - v3.0.9

Interface PromiseResponseWrapper<Response>Internal

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

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

Type Parameters

  • Response = unknown

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

    -

Properties

reject +PromiseResponseWrapper | poolifier - v3.0.11

Interface PromiseResponseWrapper<Response>Internal

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

+
interface PromiseResponseWrapper {
    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

reject: ((reason?) => void)

Type declaration

    • (reason?): void
    • Reject callback to reject the promise.

      -

      Parameters

      • Optional reason: unknown

      Returns void

resolve: ((value) => void)

Type declaration

    • (value): void
    • Resolve callback to fulfill the promise.

      -

      Parameters

      • value: Response | PromiseLike<Response>

      Returns void

workerNodeKey: number

The worker node key executing the task.

-

Generated using TypeDoc

\ No newline at end of file +

Properties

asyncResource?: AsyncResource

The asynchronous resource used to track the task execution.

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

Type declaration

    • (reason?): void
    • Reject callback to reject the promise.

      +

      Parameters

      • Optional reason: unknown

      Returns void

resolve: ((value) => void)

Type declaration

    • (value): void
    • Resolve callback to fulfill the promise.

      +

      Parameters

      • value: Response | PromiseLike<Response>

      Returns void

workerNodeKey: number

The worker node key executing the task.

+

Generated using TypeDoc

\ No newline at end of file