ThreadPoolDispatcher
Platform and version requirements: JVM
Dispatches coroutine execution to a thread pool of a fixed size. Instances of this dispatcher are created with newSingleThreadContext and newFixedThreadPoolContext.
Functions
| fun close(): UnitCloses this dispatcher – shuts down all threads in this pool and releases resources. | |
| fun toString(): String | 
Extension Functions
| fun CoroutineContext.cancel(Cancels Job of this context with an optional cancellation cause. The result is  | |
| fun CoroutineContext.cancelChildren(Cancels all children of the Job in this context with an optional cancellation cause. It does not do anything if there is no job in the context or it has no children. See Job.cancelChildren for details. |