KoneReadWriteMultiExclusion

Functions

Link copied to clipboard
abstract suspend fun awaitReadLockFor(key: Key): KoneLock
Link copied to clipboard
abstract suspend fun awaitWriteLockFor(key: Key): KoneLock
Link copied to clipboard
abstract fun tryReadLockingFor(key: Key): KoneLock?
Link copied to clipboard
abstract fun tryWriteLockingFor(key: Key): KoneLock?
Link copied to clipboard
inline suspend fun <Key, Result> KoneReadWriteMultiExclusion<Key>.withReadLockFor(key: Key, action: () -> Result): Result
Link copied to clipboard
inline suspend fun <Key, Result> KoneReadWriteMultiExclusion<Key>.withWriteLockFor(key: Key, action: () -> Result): Result