CoCond

class CoCond<T>(val scope: CoroutineScope)

Behaves like a condition, but for co-routines

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope)

Properties

Link copied to clipboard
val ch: Channel<T>
Link copied to clipboard
val scope: CoroutineScope

Functions

Link copied to clipboard
fun wake(obj: T)
Link copied to clipboard
suspend fun yield(until: (T) -> Boolean? = null, timeout: Int = Int.MAX_VALUE): T?