StreamComputedExtension<T> extension

on

Properties

prev → T
Returns the value of this stream during the last run of the current computation.
no setter
use → T
Returns the current value of this stream and subscribes to it.
no setter

Methods

prevOr(T or) → T
As prev, but returns or instead of throwing NoValueException.
react(void onData(T), [Function? onError]) → void
If this stream has produced a value or error since the last time the current computation notified its downstream, runs the given functional on the value or error produced by this stream.
useOr(T value) → T
As use, but returns value instead of throwing NoValueException.