Class ObservableFromEvent<T, E>

Represents an observable value.

Type Parameters

  • T

    The type of values the observable can hold.

  • E

    Describes how or why the observable changed. While observers might miss intermediate values of an observable, they will receive all change notifications as long as they are subscribed.

Hierarchy (view full)

Constructors

Properties

compute: ((e) => T)

Type declaration

    • (e): T
    • Parameters

      • e: undefined | E

      Returns T

event: Event<E>
getUpdateScope: (() => undefined | UpdateScope)

Type declaration

isEqual: ((a, b) => boolean)

Type declaration

    • (a, b): boolean
    • Parameters

      Returns boolean

observers: Set<Observer> = ...
subscription?: Disposable
value?: T

Methods