public class ThreadPoolDispatcher
Dispatches coroutine execution to a thread pool of a fixed size. Instances of this dispatcher are
created with ThreadPoolDispatcherKt.newSingleThreadContext
and ThreadPoolDispatcherKt.newFixedThreadPoolContext
.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this dispatcher -- shuts down all threads in this pool and releases resources.
|
java.util.concurrent.Executor |
getExecutor()
Underlying executor of current
class CoroutineDispatcher . |
java.lang.String |
toString() |
public java.util.concurrent.Executor getExecutor()
Underlying executor of current class CoroutineDispatcher
.
class CoroutineDispatcher
public void close()
Closes this dispatcher -- shuts down all threads in this pool and releases resources.
public java.lang.String toString()