标签: c# blockingcollection
我有一个阻塞集,需要批量处理5分钟。现在我正在使用GetConsumingEnumerable(),但我不想要这个,而是我需要批量处理。
GetConsumingEnumerable()
var reqs = MessageFactory.NetApiRequestQueue.GetConsumingEnumerable(token).ToObservable(); reqs.SubscribeOn(ThreadPoolScheduler.Instance).Subscribe(x => { });