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

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.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