<PackageReference Include="ReactiveUI.Primitives" Version="7.5.0" />
ReactiveUI.Primitives.Advanced.CreateSink<T>
Forwards notifications until termination and owns the resource returned by the subscription factory.
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();
}
}