Class SupplyController

Supply controller is an AbortController that acts as a supplier and supply receiver.

Cuts off the Supply once aborted and aborts once Supply cut off.

Hierarchy

  • AbortController
    • SupplyController

Constructors

Properties

Accessors

Methods

Constructors

Properties

signal: AbortSignal

Accessors

  • get supply(): Supply<void>
  • The supply representing the state of this controller.

    This supply is cut off once controller sends an abort signal.

    When this supply is cut off, the controller sends an abort signal.

    Returns Supply<void>

Methods

  • Parameters

    • Optional reason: unknown

    Returns void

Generated using TypeDoc