<PackageReference Include="ReactiveUI.Primitives.Core" Version="10.0.0" />
ReactiveUI.Primitives.Advanced.SerializedWitness<T>
Wraps an observer so notifications from any number of threads reach it one at a time, without holding a lock while it
runs.
namespace ReactiveUI.
Primitives.
Advanced
{
public sealed class SerializedWitness<[
Nullable(
2)]
T> :
IObserver<
T>
{
public bool IsTerminated { get; }
public SerializedWitness(
IObserver<
T>
observer);
public void OnNext(
T value);
public void OnError(
Exception error);
public void OnCompleted();
public bool Post(
T value);
public bool PostError(
Exception error);
public bool PostCompleted();
public void Flush();
public bool TryClaim();
public void DeliverClaimed(
T value);
public void DeliverClaimed(
T[]
values);
}
}