AxiomStreamExtensions<T> extension

on

Methods

onData(void callback(T data)) Stream<AxiomState<T>>

Available on Stream<AxiomState<T>>, provided by the AxiomStreamExtensions extension

Side effect: Execute callback when data arrives (cache or network).
onlyData() Stream<T>

Available on Stream<AxiomState<T>>, provided by the AxiomStreamExtensions extension

Filters the stream to only emit data events.
unwrap() Future<T>

Available on Stream<AxiomState<T>>, provided by the AxiomStreamExtensions extension

Returns a Future that completes with the first valid data received. Useful for "awaiting" a stream result like a standard API call. Throws if the stream ends or errors without data.