ReactiveUI.Primitives.Core.Spark<T>
Represents a spark to an observer. This is a by-value type: materializing a sequence allocates
no per-notification heap object, mirroring the value-type notification used by other modern
reactive libraries.
namespace ReactiveUI.Primitives.Core
{
public readonly struct Spark<[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<[Nullable(2)] TResult>(IObserver<T, TResult> observer);
public void Accept(Action<T> onNext, Action<Exception> onError, Action onCompleted);
public TResult Accept<[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);
}
}