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: ((reason?) => void)

Type declaration

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

      Parameters

      • Optional reason: unknown
        Optional

      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