ReaderJob

interface ReaderJob : Job

A coroutine job that is reading from a byte channel

Properties

channel

abstract val channel: ByteWriteChannel

A reference to the channel that this coroutine is reading from

Extension Functions

launchOnCancellation

fun Job.launchOnCancellation(
    block: suspend () -> Unit
): CompletableJob

Launch a coroutine with block body when the parent job is cancelled or a returned deferred is cancelled. It is important to complete or cancel returned deferred otherwise the parent job will be unable to complete successfully.

printDebugTree

fun Job.printDebugTree(offset: Int = 0): Unit

Print Job children tree.