stream<T> method
Implementation
void stream<T>(Stream<T> stream, [void listen(T next)?]) {
subscriptions.add(stream.listen(
(val) {
if (!_isDisposing) {
listen?.call(val);
}
},
cancelOnError: false,
onError: (error, stack) {
log.info(error);
log.info(stack);
},
));
}