Class ObservableBase<T>Abstract

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

Type Parameters

  • T

Hierarchy

Implements

Constructors

Methods

  • Parameters

    • error: unknown

    Returns void

  • 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

    Returns default

  • Parameters

    • subscriber: Action<T>
    • Optional onError: Action<any>
    • Optional onCompleted: Closure

    Returns default

Generated using TypeDoc