It should be something very natural to have, I was wondering if there is a ready implementation of Prioritized BufferBlock from TPL DataFlow library?
Prioritized TPL DataFlow BufferBlock
Asked Answered
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
© 2022 - 2024 — McMap. All rights reserved.
BoundedCapacity
? Or is that a feature you don't need? – SelfpropelledBoundedCapacity
was reached, then it would drop the item at the end of the list. Not exactly optimal, but it's one approach. Another would be to always setBoundedCapacity
toDataflowBlockOptions
toUnbounded
. – Reconstructionist