Options
All
  • Public
  • Public/Protected
  • All
Menu

EmitterSubscription represents a subscription with listener and context data.

Hierarchy

Index

Constructors

  • Parameters

    • emitter: EventEmitter

      The event emitter that registered this subscription

    • subscriber: EventSubscriptionVendor

      The subscriber that controls this subscription

    • listener: () => any

      Function to invoke when the specified event is emitted

        • (): any
        • Returns any

    • context: any

      Optional context object to use when invoking the listener

    Returns EmitterSubscription

  • Parameters

    Returns EventSubscription

Properties

context: any
emitter: EventEmitter
eventType: string
key: number

Methods

  • listener(): any
  • Returns any

  • remove(): void
  • Removes this subscription from the emitter that registered it. Note: we're overriding the remove() method of EventSubscription here but deliberately not calling super.remove() as the responsibility for removing the subscription lies with the EventEmitter.

    Returns void

Generated using TypeDoc