feat(change_detection): added async pipe

This commit is contained in:
vsavkin
2015-04-19 12:45:08 -07:00
parent 8b3c808cb0
commit a97a2266d3
6 changed files with 260 additions and 1 deletions

View File

@ -37,6 +37,14 @@ class ObservableWrapper {
return s.listen(onNext, onError: onError, onDone: onComplete, cancelOnError: true);
}
static bool isObservable(obs) {
return obs is Stream;
}
static void dispose(StreamSubscription s) {
s.cancel();
}
static void callNext(EventEmitter emitter, value) {
emitter.add(value);
}