Does the BoundedCapacity
limit only includes items in the input queue waiting to be processed or does it also count items being processed at the moment?
Lets take for example this ActionBlock
:
var block = new ActionBlock<int>(
i => Console.WriteLine(i),
new ExecutionDataflowBlockOptions
{
BoundedCapacity = 1000,
MaxDegreeOfParallelism = 10,
});
If there are currently 5 items being processed in parallel. Does that mean the input queue can hold 1000 items more on top of these, or just 995?