X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPromiseResponseWrapper.html;h=c78d21b7ee006d539804672e9f21d5d446cd26bc;hb=5ca8a250be7ec77da7a80f5ea3b7a9ef6ba2530a;hp=0f8f810f0f7e340fc9e908c68a64ee56b753d6bf;hpb=36df5bd40369d98d6ccb60400e66dce1aa980d54;p=poolifier.git diff --git a/docs/interfaces/PromiseResponseWrapper.html b/docs/interfaces/PromiseResponseWrapper.html index 0f8f810f..c78d21b7 100644 --- a/docs/interfaces/PromiseResponseWrapper.html +++ b/docs/interfaces/PromiseResponseWrapper.html @@ -1,190 +1,13 @@ -PromiseResponseWrapper | poolifier - v2.6.15
-
- -
-
-
-
- -

Interface PromiseResponseWrapper<Worker, Response>Internal

-
-

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

-
-
-
-

Type Parameters

-
    -
  • -

    Worker extends IWorker

    -

    Type of worker.

    -
    -
  • -
  • -

    Response = unknown

    -

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

    -
    -
-
-

Hierarchy

-
    -
  • PromiseResponseWrapper
-
-
-
- -
-
-

Properties

-
reject +PromiseResponseWrapper | poolifier - v3.1.21

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

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

      -
-
- -
worker: Worker
-

The worker handling the execution.

-
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +workerNodeKey +

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
    • Reject callback to reject the promise.

      +

      Parameters

      • Optional reason: unknown

      Returns void

resolve: ((value) => void)

Resolve callback to fulfill the promise.

+

Type declaration

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

      +

      Parameters

      Returns void

workerNodeKey: number

The worker node key executing the task.

+

Generated using TypeDoc

\ No newline at end of file