ReactiveUI.Primitives.Signals.AsyncSignal<T>
public sealed class AsyncSignal<T> : IAwaitSignal<T>, ISignal<T>, ISignal<T, T>, IObserver<T>, IObservable<T>, IsDisposed, IDisposable, INotifyCompletion
A signal that records the latest value and replays it to observers when it completes, so the completion can be awaited.
Gets a value indicating whether an observer is subscribed and the signal has neither completed nor been disposed.
Gets a value indicating whether this instance is completed.
Gets a value indicating whether this instance is disposed.
Gets the value the signal completed with.
public AsyncSignal()
Drops the observers and the recorded value, making every later notification throw.
Gets the awaiter for this signal.
Gets the completed value, blocking the calling thread until the signal completes or faults.
Completes the signal, emitting the recorded value to the current observers first when one was recorded.
Registers a callback to run when the signal terminates, on the captured synchronization context.
Faults the signal and forwards error to the current observers, discarding any recorded value.
Records value as the value replayed on completion; observers are not notified here.
Removes an observer registered via Subscribe; the observer's subscription handle calls this on disposal.
Subscribes an observer, delivering the terminal value or error immediately when the signal has completed.