Class Observable<T>

Coordinates subscriber actions with publish events

Type Parameters

  • T

Hierarchy (view full)

Implements

Constructors

Properties

CurrentIssue?: T
active: boolean = true
subscribers: Map<string, ((content?) => void)> = ...

Type declaration

    • (content?): void
    • Parameters

      • Optional content: T

      Returns void

Methods

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

    Parameters

    • func: ((content?) => void)
        • (content?): void
        • Parameters

          • Optional content: T

          Returns void

    • useCurrentIssue: boolean = true

      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?) => void)
        • (content?): void
        • Parameters

          • Optional content: T

          Returns void

    • useCurrentIssue: boolean = true

    Returns string

Generated using TypeDoc