Class ObserverSignal<T>

Signal which observes the given observable.

Type Parameters

  • T

Hierarchy (View Summary)

Implements

Methods

  • Destroys the observer signal by unsubscribing from the observable and removing any reference to it and also unregistering it from the current signal scope (if present).

    Returns void

  • Returns the current signal value which is retained even when the observed observable is complete. When the observable emitted an error then this method throws this error.

    Returns T

    The current signal value.

    Error - The error emitted by the observable, if any.

  • Parameters

    • ...args:
          | [Observer<T>]
          | [
              (value: T) => void,
              error?: (error: Error) => void,
              complete?: () => void,
          ]

    Returns Unsubscribable