endWithMany method

Stream<T> endWithMany (
  1. Iterable<T> endValues
)

Appends a sequence of values as final events to the source Stream before closing.

Example

Stream.fromIterable([2]).endWithMany([1, 0]).listen(print); // prints 2, 1, 0

Implementation

Stream<T> endWithMany(Iterable<T> endValues) =>
    transform(EndWithManyStreamTransformer<T>(endValues));