WriterJob

interface WriterJob : Job

A coroutine job that is writing to a byte channel

Properties

channel

abstract val channel: ByteReadChannel

A reference to the channel that this coroutine is writing to

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.