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

ReactiveUI.Primitives.Advanced.SerializedDelivery<T>

Serialized, non-blocking delivery to one downstream observer, held as a mutable field by the operator or subject that delivers through it.
public bool IsTerminated { get; }

Gets a value indicating whether the terminal notification has been taken for delivery or delivery was stopped.

Initializes a new instance of the SerializedDelivery<T> struct.

public SerializedDelivery(bool reentrant)

Initializes a new instance of the SerializedDelivery<T> struct.

public static bool op_Equality(SerializedDelivery<T> left, SerializedDelivery<T> right)

public static bool op_Inequality(SerializedDelivery<T> left, SerializedDelivery<T> right)

public void DeliverClaimed<TDrain>(IObserver<T> observer, T value, TDrain drain) where TDrain : IDrainTarget

Delivers a value on a delivery claimed by TryClaim, then drains anything queued meanwhile.

public void DeliverClaimed<TDrain>(IObserver<T> observer, T[] values, TDrain drain) where TDrain : IDrainTarget

Delivers values in order on a delivery claimed by TryClaim, then drains anything queued meanwhile.

public bool DrainTo(IObserver<T> observer)

Delivers queued values in order, then the terminal notification once nothing is left.

public bool Equals(SerializedDelivery<T> other)

public void Flush<TDrain>(TDrain drain) where TDrain : IDrainTarget

Delivers queued notifications on the calling thread, or hands them to the thread already delivering.

public void OnCompleted<TDrain>(TDrain drain) where TDrain : IDrainTarget

Delivers completion as the terminal notification, after any queued values.

public void OnError<TDrain>(Exception error, TDrain drain) where TDrain : IDrainTarget

Delivers an error as the terminal notification, after any queued values.

public void OnNext<TDrain>(IObserver<T> observer, T value, TDrain drain) where TDrain : IDrainTarget

Delivers a value directly when nothing else is delivering, otherwise queues it behind the running delivery.

public bool Post(T value)

Queues a value without delivering it.

public bool PostCompleted()

Queues completion as the terminal notification without delivering it.

public bool PostError(Exception error)

Queues an error as the terminal notification without delivering it.

public void Start<TReader, TDrain>(IObserver<T> observer, TReader reader, TDrain drain) where TReader : ICurrentValueReader<T> where TDrain : IDrainTarget

Reads the initial value inside the delivery and delivers it before any value raised during the read.

public void Stop()

Stops delivery; queued notifications are dropped and nothing further is queued or delivered.

public bool TryClaim()

Claims the delivery when nothing is queued or delivering, so a caller holding its own lock can deliver after releasing it.