tsbase
    Preparing search index...

    Interface ISyncObservable<T>

    Coordinates subscriber actions with publish events

    interface ISyncObservable<T> {
        Cancel(subscriptionId: string): void;
        Discontinue(): void;
        Order(func: (content?: T) => void, useCurrentIssue?: boolean): void;
        Publish(content?: T): void;
        Reinstate(): void;
        Subscribe(func: (content?: T) => void, useCurrentIssue?: boolean): string;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    • A single issue subscription. Once the function for an order fires, it is automatically canceled

      Parameters

      • func: (content?: T) => void
      • OptionaluseCurrentIssue: boolean

        Determines if the order can be filled by the current issue

      Returns void

    • Specify a function to fire on future publish events | id returned allows caller to cancel subscription

      Parameters

      • func: (content?: T) => void
      • OptionaluseCurrentIssue: boolean

      Returns string