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.
Gets a value indicating whether the terminal notification has been taken for delivery or delivery was stopped.
public SerializedDelivery()
Initializes a new instance of the SerializedDelivery<T> struct.
Initializes a new instance of the SerializedDelivery<T> struct.
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.
Delivers queued values in order, then the terminal notification once nothing is left.
Delivers queued notifications on the calling thread, or hands them to the thread already delivering.
Delivers completion as the terminal notification, after any queued values.
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.
Queues a value without delivering it.
Queues completion as the terminal notification without delivering it.
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.
Stops delivery; queued notifications are dropped and nothing further is queued or delivered.
Claims the delivery when nothing is queued or delivering, so a caller holding its own lock can deliver after releasing it.