Class DistributedQueueTaskStarter
A class that manages and starts a collection of actions in parallel.
public class DistributedQueueTaskStarter
- Inheritance
-
DistributedQueueTaskStarter
- Inherited Members
- Extension Methods
Constructors
DistributedQueueTaskStarter(int)
Initializes a new instance of the DistributedQueueTaskStarter class.
public DistributedQueueTaskStarter(int maxWorkingTaskNum = 0)
Parameters
maxWorkingTaskNum
intThe maximum number of tasks that can be executed simultaneously. If 0, uses the processor count.
Properties
IdleTaskNum
Gets the number of idle tasks (capacity minus current count).
public int IdleTaskNum { get; }
Property Value
Methods
Start()
Starts executing all actions in parallel.
public Task Start()
Returns
- Task
A task representing the asynchronous operation.