Type alias Sink<T>

Sink<T>: ((signal) => void)

Type Parameters

  • T

Type declaration

    • (signal): void
    • Callback function that is called by a Source with Signals.

      Remarks

      A Sink is a function that is called repeatedly with signals from a Source. It represents the receiver of the stream of signals/events coming from a Source.

      See

      Signal for the data structure of signals.

      Parameters

      Returns void

Generated using TypeDoc