Ejemplo n.º 1
0
        public override StreamSubscription <T> listen(Action <T> onData,
                                                      Action <object, string> onError = null, Action onDone = null, bool cancelOnError = false)
        {
            //cancelOnError = cancelOnError;
            StreamSubscription <T> result = _onListen(_stream, cancelOnError);

            result.onData(onData);
            result.onError(onError);
            result.onDone(onDone);
            return(result);
        }
Ejemplo n.º 2
0
 public CastStreamSubscription(StreamSubscription <S> _source)
 {
     this._source = _source;
     _source.onData(_onData);
 }