kotlin.concurrent.thread

thread

fun thread(
    start: Boolean = true, 
    isDaemon: Boolean = false, 
    contextClassLoader: ClassLoader? = null, 
    name: String? = null, 
    priority: Int = -1, 
    block: () -> Unit
): Thread

Platform and version requirements: JVM

Creates a thread that runs the specified block of code.

Parameters

start - if true, the thread is immediately started.

isDaemon - if true, the thread is c