Skip to content

Spark struct

Attributes: [DebuggerDisplay("{DebuggerDisplay,nq}")]

Defined in

Namespace: ReactiveUI.Primitives.Reactive.Core Assembly: ReactiveUI.Primitives.Reactive.dll Full name: ReactiveUI.Primitives.Reactive.Core.Spark<T> Modifiers: public sealed

Summary

View source

        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.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class Spark~T~
class IEquatable~Spark~T~~ {
    <>
}
IEquatable~Spark~T~~ <|.. Spark~T~

Implements: IEquatable>

Properties

NameSummary
ValueGets the value carried by an OnNext spark, or the default value for OnError and OnCompleted sparks. Check [HasValue](# (or...
HasValueGets a value indicating whether the spark carries a value.
ExceptionGets the exception of an OnError spark or returns null.
KindGets the kind of Spark that is represented.

Methods

NameSummary
EqualsDetermines whether the current Spark object has the same observer message payload as a specified Spark value.
GetHashCodeReturns the hash code for this spark.
ToStringReturns a string representation of this spark.
AcceptInvokes the observer's method corresponding to the Spark.
ToObservableReturns an observable sequence with a single Spark, using the immediate scheduler.

Operators

NameSummary
static op_Inequality
static op_Equality