优先 TPL 数据流缓冲区块
这应该是非常自然的事情,我想知道 TPL DataFlow 库中是否有现成的 Prioritized BufferBlock 实现?
It should be something very natural to have, I was wondering if there is a ready implementation of Prioritized BufferBlock from TPL DataFlow library?
这应该是非常自然的事情,我想知道 TPL DataFlow 库中是否有现成的 Prioritized BufferBlock 实现?
It should be something very natural to have, I was wondering if there is a ready implementation of Prioritized BufferBlock from TPL DataFlow library?
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
似乎实现这一点的最佳方法是使用专门的任务调度程序,而不是实现自己的 BufferBlock。其种类有很多种,网上一查就能查到。例如,检查 中的
QueuedTaskScheduler
并行扩展库Seems the best way to achieve this is to use a specialised Task Scheduler, rather than implementing your own BufferBlock. There are many variety of them one can find out in net. For instance, check
QueuedTaskScheduler
in ParallelExtensions Library