Class Observable<A>Internal

A computation which may asynchronously publish 0-or-more values to a subscribing Observer.

An Observable<A> for some type A defines a double negation of values of type A.

See

  • Wire a sub-class for event broadcasting.
  • Behavior for a dynamic store (as seen in Svelte).

Type Parameters

  • A

    the value type published by this Observable.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

_action: ((c) => void | Activity | (() => void))

Type declaration

Methods

  • Type Parameters

    • B = void

      Type returned by the incoming observer.

    Parameters

    • observer: Observer<A, B> | ((a) => B)

      This function will be called each time the observable publishes a value.

    Returns Activity

Generated using TypeDoc