Task Parallel Library Tasks work with schedulers. The most frequently used one is the default, the ThreadPool scheduler. But one can create custom schedulers too. In this case, you need to know, how the runtime chooses the scheduler for a particular task.
- If you specify a scheduler, it will use that.
- If you do not specify a scheduler, it will use the current one (TaskScheduler.Current). The current one depends on the context.
- Continuations do not inherit the scheduler of their antecedent.