Scoop API

scoop:scoop.core:0.1.0

Job

class Job

source · line 14
public
public open class Job internal constructor(
    parent: Job?,
    private val propagatesFailure: Boolean = true
)

Tracks a coroutine and its structured children. Completion waits for children; cancellation requests propagate to children and registered handlers.

function cancel

source · line 54
public
public fun cancel(): Unit

Requests cancellation of this job and its children. Repeated requests preserve the existing cancellation outcome.

function ensureActive

source · line 45
public
public fun ensureActive(): Unit

Throws the job's cancellation exception when cancellation has been requested.

function join

source · line 301
public
public suspend fun join(): Unit

Suspends until this job completes, including its children. Joining does not retrieve a deferred result.