<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.3.0" />

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 exposes its next value as an awaitable operation.
public bool HasObservers { get; }

Gets a value indicating whether this instance has observers.

public bool IsCompleted { get; }

Gets a value indicating whether this instance is completed.

public bool IsDisposed { get; }

Gets a value indicating whether this instance is disposed.

public T Value { get; }

Gets the value.

public AsyncSignal()

public void Dispose()

Releases unmanaged and - optionally - managed resources.

Gets an awaitable object for the current final signal.

public T GetResult()

Gets the last element of the subject, potentially blocking until the subject completes successfully or exceptionally.

public void OnCompleted()

Called when [completed].

public void OnCompleted(Action continuation)

Specifies a callback action that will be invoked when the subject completes.

public void OnError(Exception error)

Called when [error].

public void OnNext(T value)

Called when [next].

public void RemoveObserver(IObserver<T> observer)

Removes an observer previously registered via Subscribe. Called by the observer's subscription handle when it is disposed.

public IDisposable Subscribe(IObserver<T> observer)

Subscribes the specified observer.