ChannelHelper的使用

实例代码:

获取Channel

var channel=ChannelHelper<int>.GetChannel();

写入数据

int i=1;
bool result=ChannelHelper<int>.TryWrite(i);

读取一条数据

bool result=ChannelHelper<int>.TryRead();

读取所有数据

List<int>list;
list=ChannelHelper<int>.ReadAllData();

results matching ""

    No results matching ""