Immutable

class Immutable(val lockStateFlow: StateFlow<Boolean>) : SmartMutex(source)

Immutable variant of SmartMutex. In fact will depend on the owner of lockStateFlow

Constructors

Link copied to clipboard
constructor(lockStateFlow: StateFlow<Boolean>)

Properties

Link copied to clipboard
open val isLocked: Boolean
Link copied to clipboard
open override val lockStateFlow: StateFlow<Boolean>

Functions

Link copied to clipboard

Will wait until the SmartMutex.lockStateFlow of this instance will be false.