rejectErrors method

StreamSink<T> rejectErrors()

Returns a StreamSink that forwards to this but rejects errors.

If an error is passed (either by addError or addStream), the underlying sink will be closed and the error will be forwarded to the returned sink's StreamSink.done future. Further events will be ignored.

Implementation

StreamSink<T> rejectErrors() => RejectErrorsSink(this);