use property

T get use

Returns the current value of this stream and subscribes to it.

Unlike react, use does not trigger a re-computation if this stream consecutively produces values comparing equal to each other. Can only be used inside computations. Cannot be used inside react callbacks. If the last item in this stream is an error, throws it. Throws NoValueException if this stream does not have a known value yet.

Implementation

T get use => StreamComputedExtensionImpl<T>(this).use;