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

Properties

reject: ((reason?) => void)

Type declaration

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

      Parameters

      • Optional reason: string

      Returns void

resolve: ((value) => void)

Type declaration

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

      Parameters

      • value: Response

      Returns void

worker: Worker

The worker handling the execution.

Generated using TypeDoc