threadPoolDispatcher
Creates a coroutine execution context using a thread pool.
NOTE: The resulting CloseableCoroutineDispatcher owns native resources (its thread). Resources are reclaimed by CloseableCoroutineDispatcher.close.
Creates a coroutine execution context using a thread pool.
NOTE: The resulting CloseableCoroutineDispatcher owns native resources (its thread). Resources are reclaimed by CloseableCoroutineDispatcher.close.
Parameters
The number of the threads that the thread pool should consist of.
The name of the thread pool to be created.
Creates a coroutine execution context using a thread pool. Since JavaScript does not have threading support, this will just return Dispatchers.Default
Parameters
The number of the threads that the thread pool should consist of.
The name of the thread pool to be created.
Creates a coroutine execution context using a thread pool.
NOTE: The resulting CloseableCoroutineDispatcher owns native resources (its thread). Resources are reclaimed by CloseableCoroutineDispatcher.close.