<PackageReference Include="ReactiveUI.Primitives" Version="10.0.0" />

ReactiveUI.Primitives.Core.Spark<T>

public struct Spark<T> : IEquatable<Spark<T>>
Represents a value, error, or completion notification.
namespace ReactiveUI.Primitives.Core { public readonly struct Spark<[System.Runtime.CompilerServices.Nullable(2)] T> : IEquatable<Spark<T>> { public T Value { get; } public bool HasValue { get; } public Exception Exception { get; } public SparkKind Kind { get; } public bool Equals(Spark<T> other); public void Accept(IObserver<T> observer); public TResult Accept<[System.Runtime.CompilerServices.Nullable(2)] TResult>(IObserver<T, TResult> observer); public void Accept(Action<T> onNext, Action<Exception> onError, Action onCompleted); public TResult Accept<[System.Runtime.CompilerServices.Nullable(2)] TResult>(Func<T, TResult> onNext, Func<Exception, TResult> onError, Func<TResult> onCompleted); public IObservable<T> ToObservable(); public IObservable<T> ToObservable(ISequencer scheduler); public static bool operator !=(Spark<T> left, Spark<T> right); public static bool operator ==(Spark<T> left, Spark<T> right); } }