Interface IObservable<T>

Coordinates subscriber actions with publish events

interface IObservable<T> {
    Cancel(subscriptionId): void;
    Discontinue(): void;
    Publish(content?): void;
    Reinstate(): void;
}

Type Parameters

  • T

Hierarchy (view full)

Implemented by

Methods

  • Cancel an existing subscription by passing the id returned in the subscribe call

    Parameters

    • subscriptionId: string

    Returns void

Generated using TypeDoc