X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPromiseResponseWrapper.html;h=2080a9addcfb568ef68a4d6eb4f69f2ac915288d;hb=b20bf19abbcc1fb78e71f843d6eb56ad8c4c630c;hp=46a05c1d3c32142ef41defe1450fdc63ba8804ca;hpb=273b76d87560482b4114668a705e42d54b3ce3b0;p=poolifier.git diff --git a/docs/interfaces/PromiseResponseWrapper.html b/docs/interfaces/PromiseResponseWrapper.html index 46a05c1d..2080a9ad 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.

-

Type Parameters

  • Response = unknown

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

    -

Hierarchy

  • PromiseResponseWrapper

Properties

reject +PromiseResponseWrapper | poolifier - v3.1.12

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