StreamComputedExtension<T> extension

on

Properties

prev → T

Available on Stream<T>, provided by the StreamComputedExtension extension

Returns the value of this stream during the last run of the current computation.
no setter
use → T

Available on Stream<T>, provided by the StreamComputedExtension extension

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

Methods

prevOr(T or) → T

Available on Stream<T>, provided by the StreamComputedExtension extension

As prev, but returns or instead of throwing NoValueException.
react(void onData(T), [Function? onError]) → void

Available on Stream<T>, provided by the StreamComputedExtension extension

Subscribes to this stream in a non-memoized manner.
useOr(T value) → T

Available on Stream<T>, provided by the StreamComputedExtension extension

As use, but returns value instead of throwing NoValueException.