2

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

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

4

1 回答 1

3

我可能是错的,但对我来说它看起来像是一个丢弃物。

于 2018-10-24T15:47:41.277 回答