onLock

abstract val onLock: SelectClause2<Any?, Mutex>(source)

Deprecated

Mutex.onLock deprecated without replacement. For additional details please refer to #2794

Clause for select expression of lock suspending function that selects when the mutex is locked. Additional parameter for the clause in the owner (see lock) and when the clause is selected the reference to this mutex is passed into the corresponding block.