• A processor of events incoming from OnEvent sender that shares outgoing events supply among all registered receivers.

    The created sender receives events from this one and sends to registered receivers. The shared sender registers a receiver in this one only once, when first receiver registered. And cuts off original events supply once all supplies do.

    Type Parameters

    • TEvent extends any[]

      An event type. This is a list of event receiver parameter types.

    Parameters

    • supplier: OnEvent<TEvent>

      Event sender to share events from.

    Returns OnEvent<TEvent>

    An OnEvent sender sharing a common supply of events.

Generated using TypeDoc