subscribe<T> method
Implementation
void subscribe<T>(StreamController<T> controller, void listen(T next)) {
subscriptions.add(controller.stream.listen(
(val) {
if (!_isDisposing) {
listen(val);
}
},
onError: (error, stack) {
log.info(error);
log.info(stack);
},
));
}