Creates an ObserverSignal which observes the given observable. Note that by default the signal includes undefined as valid value. If you
don't want that then either specify an initialValue in the signal options or use the requireSync option to define that the observable does emit
a value synchronously on subscription.
To prevent memory leaks you must either manually destroy the signal with the ObserverSignal.destroy method or use a SignalContext
which automatically destroys observer signals created within the context when the context is destroyed.
Creates an ObserverSignal which observes the given observable. Note that by default the signal includes
undefined
as valid value. If you don't want that then either specify aninitialValue
in the signal options or use therequireSync
option to define that the observable does emit a value synchronously on subscription.To prevent memory leaks you must either manually destroy the signal with the ObserverSignal.destroy method or use a SignalContext which automatically destroys observer signals created within the context when the context is destroyed.
Param: subscribable
The observable to subscribe to.
Param: options
Optional signal options.
Returns
The created observer signal.