Function abortSupplyBy

  • Aborts supply by given signal.

    If the given signal already aborted, then cuts off the supply with abort reason. Otherwise, cuts off the supply once an abort signal received.

    Parameters

    • signal: AbortSignal

      The signal that aborts the supply.

    • Optional receiver: SupplyReceiver<void> | SupplyReceiverFn

      Optional supply receiver for contructed supplier. It can be useful to prevent the unexpected failure in case the signal already aborted.

    Returns SupplyOut

    New supplier instance cut off once the signal aborted.

Generated using TypeDoc