ReaderJob

interface ReaderJob : Job

Deprecated

We're migrating to the new kotlinx-io library. This declaration is deprecated and will be removed in Ktor 4.0.0 If you have any problems with migration, please contact us in https://youtrack.jetbrains.com/issue/KTOR-6030/Migrate-to-new-kotlinx.io-library

A coroutine job that is reading from a byte channel

Properties

Link copied to clipboard

A reference to the channel that this coroutine is reading from

Link copied to clipboard
abstract val children: Sequence<Job>
Link copied to clipboard
abstract val isActive: Boolean
Link copied to clipboard
abstract val isCancelled: Boolean
Link copied to clipboard
abstract val isCompleted: Boolean
Link copied to clipboard
abstract val key: CoroutineContext.Key<*>
Link copied to clipboard
abstract val onJoin: SelectClause0
Link copied to clipboard
abstract val parent: Job?

Functions

Link copied to clipboard
abstract fun attachChild(child: ChildJob): ChildHandle
Link copied to clipboard
abstract fun cancel(cause: CancellationException?)
Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard
abstract fun getCancellationException(): CancellationException
Link copied to clipboard
abstract fun invokeOnCompletion(handler: CompletionHandler): DisposableHandle
abstract fun invokeOnCompletion(onCancelling: Boolean, invokeImmediately: Boolean, handler: CompletionHandler): DisposableHandle
Link copied to clipboard
abstract suspend fun join()
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext
open operator fun plus(other: Job): Job
Link copied to clipboard
abstract fun start(): Boolean