newSingleThreadContext
fun newSingleThreadContext(
name: String
): ThreadPoolDispatcher (source)Platform and version requirements: JVM
Creates new coroutine execution context with the a single thread and built-in yield and delay support. NOTE: The resulting ThreadPoolDispatcher owns native resources (its thread).Resources are reclaimed by ThreadPoolDispatcher.close.
Parameters
name - the base name of the created thread.