TakeUntil<T> extension

A utility to end a stream based on an external trigger.

on

Methods

takeUntil(Future<void> trigger) Stream<T>
Returns a stream which emits values from the source stream until trigger fires. [...]