Class SubscribableBase<TSubscriber>

Base class for implementing any subscribable class that expects Disposable for releasing subscriptions.

Type Parameters

  • TSubscriber

Hierarchy

Constructors

Methods

  • Returns undefined | ExtendedIterable<TSubscriber>

  • Returns undefined

  • Parameters

    • returnSubscribers: false

    Returns undefined

  • Parameters

    • returnSubscribers: true

    Returns undefined | TSubscriber[]

  • Parameters

    • returnSubscribers: boolean

    Returns undefined | TSubscriber[]

  • Accepts TSubscriber (observer) and returns a Subscription that can be disposed of. The dispose method is scope independent and can be called out of context and still cancel the subscription.

    Returns

    Parameters

    • subscriber: TSubscriber

    Returns default

  • Unsubscribes the TSubscriber (observer).

    Parameters

    • subscriber: TSubscriber

    Returns void

Generated using TypeDoc