ReactiveUI.Primitives.Advanced.CreateSink<T>
The observer handed to create-style subscription factories: forwards until terminated, owns the factory's
cancel resource, and optionally releases it when a downstream OnNext throws (the safe-create contract).
The shared sink behind CreateSignal<T> and CreateSafeSignal<T>, usable by any
implementation that hands an observer to a caller-supplied subscribe delegate.
namespace ReactiveUI.Primitives.Advanced
{
public sealed class CreateSink<[Nullable(2)] T> : IDisposable, IObserver<T>
{
public CreateSink(IObserver<T> observer, bool disposeOnNextThrow);
public CreateSink(IObserver<T> observer, IDisposable cancel, bool disposeOnNextThrow);
public void SetCancel(IDisposable cancel);
public void OnNext(T value);
public void OnError(Exception error);
public void OnCompleted();
public void Dispose();
}
}