• Creates an event processor that extracts event keepers from events incoming from `{@link AfterEvent} keeper.

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

    @category Event Processing @typeParam TInEvent - Incoming events type. @typeParam TOutEvent - Extracted events type. @param extract - A function extracting outgoing event keeper from incoming event. May return undefined when nothing extracted.

    Type Parameters

    • TInEvent extends any[]

    • TOutEvent extends any[]

    Parameters

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

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

          Returns undefined | void | EventKeeper<TOutEvent>

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

    New processor of events incoming from @AfterEvent keeper.

  • Creates an event processor that extracts event keepers from events incoming from `{@link OnEvent} sender.

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

    @category Event Processing @typeParam TInEvent - Incoming events type. @typeParam TOutEvent - Extracted events type. @param extract - A function extracting outgoing event keeper from incoming event. May return undefined when nothing extracted.

    Type Parameters

    • TInEvent extends any[]

    • TOutEvent extends any[]

    Parameters

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

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

          Returns undefined | void | EventKeeper<TOutEvent>

    • fallback: ((this) => TOutEvent)

      A function creating fallback event.

        • (this): TOutEvent
        • Parameters

          • this: void

          Returns TOutEvent

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

    New processor of events incoming from @OnEvent sender.

Generated using TypeDoc