• Creates an event processor that extracts event senders from incoming events.

    The outgoing events supply is cut off once the incoming events supply do.

    Type Parameters

    • TInEvent extends any[]

      Incoming events type.

    • TOutEvent extends any[]

      Extracted events type.

    Parameters

    • extract: ((this, ...event) => undefined | void | EventSupplier<TOutEvent>)

      A function extracting outgoing event supplier from incoming event. May return undefined when nothing extracted.

        • (this, ...event): undefined | void | EventSupplier<TOutEvent>
        • Parameters

          • this: void
          • Rest ...event: TInEvent

          Returns undefined | void | EventSupplier<TOutEvent>

    Returns ((this, input) => OnEvent<TOutEvent>)

    New event processor.

      • (this, input): OnEvent<TOutEvent>
      • Parameters

        • this: void
        • input: OnEvent<TInEvent>

        Returns OnEvent<TOutEvent>

Generated using TypeDoc