コード例 #1
0
ファイル: Channel.cs プロジェクト: yimengfan/BDFramework.Core
 public SingleConsumerUnboundedChannel()
 {
     items        = new Queue <T>();
     Writer       = new SingleConsumerUnboundedChannelWriter(this);
     readerSource = new SingleConsumerUnboundedChannelReader(this);
     Reader       = readerSource;
 }
コード例 #2
0
ファイル: Channel.cs プロジェクト: yimengfan/BDFramework.Core
 public ReadAllAsyncEnumerable(SingleConsumerUnboundedChannelReader parent, CancellationToken cancellationToken)
 {
     this.parent             = parent;
     this.cancellationToken1 = cancellationToken;
 }