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

Link copied to clipboard
fun Group()

Functions

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

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