function nonCancellableScope
source · line 180public
public suspend fun <T> nonCancellableScope(block: suspend CoroutineScope.() -> T): T
Runs a structured scope detached from parent cancellation. The scope still owns a job whose own cancellation and child completion rules apply.
parameter block
source · line 180public
block: suspend CoroutineScope.() -> T
type parameter T
source · line 180public
T