newFixedThreadPoolContext
fun newFixedThreadPoolContext(
nThreads: Int,
name: String
): ThreadPoolDispatcher (source)Platform and version requirements: JVM
Creates new coroutine execution context with the fixed-size thread-pool and built-in yield and delay support. NOTE: The resulting ThreadPoolDispatcher owns native resources (its threads).Resources are reclaimed by ThreadPoolDispatcher.close.
Parameters
nThreads - the number of threads.
name - the base name of the created threads.