Group

class Group

Exclusive access lock group. Multiple locks in the same group are competing with each other.

When runExclusively is executing on one lock in the group, second lock's runExclusively bounces as if the second lock was already in middle of executing runExclusively itself.

Constructors

Group
Link copied to clipboard
fun Group()

Functions

runExclusively
Link copied to clipboard
suspend fun runExclusively(work: suspend () -> Unit)
While the supplied work is running, this group is considered locked and all other invocations of this method will just return, doing nothing.

Properties

isOperationRunning
Link copied to clipboard
val isOperationRunning: Boolean
observeIsOperationRunning
Link copied to clipboard
val observeIsOperationRunning: ObservableProperty<Boolean>