Example #1
0
            public Logic(SubSource <T> stage) : base(stage.Shape)
            {
                _stage = stage;

                SetHandler(stage._out,
                           onPull: () => _stage.ExternalCallback(SubSink.RequestOne.Instance),
                           onDownstreamFinish: () => _stage.ExternalCallback(SubSink.Cancel.Instance));
            }
Example #2
0
            public Logic(SubSource <T> stage) : base(stage.Shape)
            {
                _stage = stage;

                SetHandler(stage._out, this);
            }