_ = WriteItems(channel.Writer,count,delay);中的下划线是什么意思?

时间:2018-10-24 15:45:57

标签: c#

我正在阅读有关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;
}

下划线是什么意思?它是可变的吗?

1 个答案:

答案 0 :(得分:2)

我可能是错的,但对我来说好像是discard

相关问题