예제 #1
0
 internal _StateStreamSubscription(
     _ForwardingStream <T, T> stream,
     Action <T> onData, Action <object, string> onError, Action onDone, bool cancelOnError, object _sharedState
     )
     : base(stream, onData, onError, onDone, cancelOnError)
 {
     this._sharedState = _sharedState;
 }
예제 #2
0
 internal _ForwardingStreamSubscription(_ForwardingStream <S, T> _stream,
                                        Action <T> onData, Action <object, string> onError, Action onDone, bool cancelOnError
                                        )
     : base(onData, onError, onDone, cancelOnError)
 {
     this._stream  = _stream;
     _subscription = _stream._source
                     .listen(_handleData, onError: _handleError, onDone: _handleDone);
 }