X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPromiseResponseWrapper.html;h=2d5116faac236a6cf72ac7fea8906c11d745cde3;hb=394676d15b59b7013b9d95889e47a4a49860b057;hp=cd7d50de0e0a4b51d62702d6bcedd3e65a48963e;hpb=447eca603b96bc46303dfa16f3048b68ae576b0c;p=poolifier.git diff --git a/docs/interfaces/PromiseResponseWrapper.html b/docs/interfaces/PromiseResponseWrapper.html index cd7d50de..2d5116fa 100644 --- a/docs/interfaces/PromiseResponseWrapper.html +++ b/docs/interfaces/PromiseResponseWrapper.html @@ -1,148 +1,11 @@ -PromiseResponseWrapper | poolifier - v2.7.0
-
- -
-
-
-
- -

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

-
-
-

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 +PromiseResponseWrapper | poolifier - v3.1.29

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

+

Generated using TypeDoc

\ No newline at end of file