StreamExtension<T> extension

Functions for using Stream with the Result.

on

Methods

toResult({bool test(Object error)?}) Stream<Result<T>>
Encapsulates a value emitted in a Result, if successful then the value is encapsulated as a success in Result using the EventSink.add, if error then test is called with the error value, if test is true, the error and the StackTrace are encapsulated as a failure in Result using EventSink.add, otherwise, if test is false, then the error and StackTrace are added using EventSink.addError.