static async Task Run(IBasicReadChannel <string> channel) { Console.WriteLine("Processing channel items"); while (true) { var item = await channel.ReadAsync(); if (item == null) { break; } } Console.WriteLine("Done with channel"); }
public DumpChannel(string info, IBasicReadChannel <string> innerChannel) { _info = info; _innerChannel = innerChannel; }
public SplitChannel(IBasicReadChannel <string> innerChannel) { _innerChannel = innerChannel; _currentItem = null; _currentOffset = 0; }
public SplitChannel(IBasicReadChannel <string> innerChannel) { _innerChannel = innerChannel; }