Esempio n. 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));
            }
Esempio n. 2
0
            public Logic(SubSource <T> stage) : base(stage.Shape)
            {
                _stage = stage;

                SetHandler(stage._out, this);
            }