Exemplo n.º 1
0
            public Logic(SubSink <T> stage) : base(stage.Shape)
            {
                _stage = stage;

                SetHandler(stage._in,
                           onPush: () => _stage._externalCallback(new OnNext(Grab(_stage._in))),
                           onUpstreamFinish: () => _stage._externalCallback(OnComplete.Instance),
                           onUpstreamFailure: ex => _stage._externalCallback(new OnError(ex)));
            }
Exemplo n.º 2
0
 public override void OnPush() => _stage._externalCallback(new OnNext(Grab(_stage._in)));