我正在阅读有关 SignalR 的内容,并且找到了代码:
public ChannelReader<int> Counter(int count, int delay)
{
var channel = Channel.CreateUnbounded<int>();
// We don't want to await WriteItems, otherwise we'd end up waiting
// for all the items to be written before returning the channel back to
// the client.
_ = WriteItems(channel.Writer, count, delay);
return channel.Reader;
}
下划线的含义是什么?是可变的吗?
最佳答案
我可能是错的,但它看起来像 discard对我来说。
关于c# - _ = WriteItems(channel.Writer, count, delay); 中下划线的含义是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52973145/