ChannelReader<T>.ReadAllAsync return 是静态枚举还是动态枚举?

Does ChannelReader<T>.ReadAllAsync return a static or dynamic enumeration?

此方法的 documentation 简单地说:

Creates an IAsyncEnumerable that enables reading all of the data from the channel.

返回的可枚举对象是否表示调用时频道的快照,或者它是否是频道的 'live' 视图,如果项目 added/removed 被其他参与者同时我在列举呢?

根据 source code 它枚举了直播频道,而不是快照。

当然,继承了类即覆盖此行为。您需要检查您的特定实例。