CoroutineMonitor

class CoroutineMonitor : CoroutineContext.Element

A monitor of goal state that could be accessed only form inside the goal

Constructors

CoroutineMonitor
Link copied to clipboard
common
fun CoroutineMonitor()

Types

Companion
Link copied to clipboard
common
object Companion : CoroutineContext.Key<CoroutineMonitor>

Functions

finish
Link copied to clipboard
common
fun finish()

Mark the goal as completed

fold
Link copied to clipboard
common
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
get
Link copied to clipboard
common
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
minusKey
Link copied to clipboard
common
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
plus
Link copied to clipboard
common
open operator fun plus(context: CoroutineContext): CoroutineContext
start
Link copied to clipboard
common
fun start()

Mark the goal as started

Properties

key
Link copied to clipboard
common
open override val key: CoroutineContext.Key<*>
status
Link copied to clipboard
common
var status: String
totalWork
Link copied to clipboard
common
var totalWork: Double = 1.0
workDone
Link copied to clipboard
common
var workDone: Double = 0.0