CoroutineProgressReporter¶
class CoroutineProgressReporter(reporter: ProgressReporter) : AbstractCoroutineContextElement, ProgressReporter
Captures progress information about the currently running task.
KotlinX.Coroutines uses a CoroutineContext object throughout suspend functions to store information about the currently-running task. To report the current Progress of a coroutine, CoroutineProgressReporter is added to its context.
Constructors¶
CoroutineProgressReporter¶
constructor(reporter: ProgressReporter)
Types¶
Key¶
object Key : CoroutineContext.Key<CoroutineProgressReporter>
Properties¶
key¶
open override val key: CoroutineContext.Key<*>
Functions¶
asCoroutineContext¶
Wraps this ProgressReporter into a CoroutineProgressReporter so it can be inserted in a CoroutineContext.
fold¶
get¶
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
minusKey¶
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
plus¶
open operator fun plus(context: CoroutineContext): CoroutineContext