class Thread
source · line 62public
public class Thread private constructor(private val completion: ThreadCompletion) : Disposable
- Supertype
Disposable
An owned native thread running a managed non-suspending function. Join or dispose to observe completion and any captured exception.
function join
source · line 102public
public fun join(): Unit
Waits for native termination and rethrows a captured function exception. Subsequent joins retain the same completion outcome.
property isFinished
source · line 67public
public val isFinished: Boolean
get: public read-only
Whether the function has completed, including exceptional completion.
getter get
source · line 67public
get(): Boolean
function dispose
source · line 120public
public override fun dispose(): Unit
- Overrides
dispose
Joins an outstanding thread and releases its native join handle.