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.
Gets the exception of an OnError spark or returns null.
Gets a value indicating whether the spark carries a value.
Gets the kind of Spark that is represented.
Gets the value carried by an OnNext spark, or the default value for OnError and OnCompleted
sparks. Check HasValue (or Kind) to determine whether the value is
meaningful, and read Exception for the error carried by an OnError spark.
Invokes the observer's method corresponding to the Spark.
Invokes the observer's method corresponding to the Spark and returns the produced result.
Invokes the delegate corresponding to the Spark.
public TResult Accept<TResult>(Func<T, TResult> onNext, Func<Exception, TResult> onError, Func<TResult> onCompleted)
Invokes the delegate corresponding to the Spark and returns the produced result.
Determines whether the current Spark<T> object has the same observer message payload as a specified Spark<T> value.
Returns an observable sequence with a single Spark, using the immediate scheduler.
Returns an observable sequence with a single Spark.