Class JobQueue
Runs jobs on a single background thread that is started and stopped on demand.
public class JobQueue
- Inheritance
-
objectJobQueue
- Extension Methods
Constructors
JobQueue(CancellationToken)
Runs jobs on a single background thread that is started and stopped on demand.
public JobQueue(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenUsed to stop processing jobs.
Methods
Enqueue(Action)
Adds a job to the work queue.
public void Enqueue(Action job)
Parameters
job
Action