QoraStateStreamExtensions<T> extension
Extension for working with Stream<QoraState<T>>.
Methods
-
data(
) → Stream< T> -
Available on Stream<
Extracts just the data, skipping states without data.QoraState< , provided by the QoraStateStreamExtensions extensionT> > -
dataOrNull(
) → Stream< T?> -
Available on Stream<
Extracts just the data, emitting whenever state has data.QoraState< , provided by the QoraStateStreamExtensions extensionT> > -
delayLoading(
Duration duration) → Stream< QoraState< T> > -
Available on Stream<
Delays Loading states while letting other states through immediately.QoraState< , provided by the QoraStateStreamExtensions extensionT> > -
mapData<
R> (R transform(T data)) → Stream< QoraState< R> > -
Available on Stream<
Maps the data type while preserving state structure.QoraState< , provided by the QoraStateStreamExtensions extensionT> > -
whereError(
) → Stream< Failure< T> > -
Available on Stream<
Filters stream to only emit Failure states.QoraState< , provided by the QoraStateStreamExtensions extensionT> > -
whereHasData(
) → Stream< QoraState< T> > -
Available on Stream<
Filters stream to only emit states with data.QoraState< , provided by the QoraStateStreamExtensions extensionT> > -
whereSuccess(
) → Stream< Success< T> > -
Available on Stream<
Filters stream to only emit Success states.QoraState< , provided by the QoraStateStreamExtensions extensionT> >