core / pragma.utils / MetrickingMutex /
MetrickingMutex #
class MetrickingMutex(metricManager: MetricsManager, locked: Boolean = false) : AlertingMutex
MetrickingMutex is an implementation of the Mutex interface that will log a warning and increment the "pragma.engine.mutex.waitingForLock" metric every 5000ms if it cannot obtain a lock.
References
- kotlinx.coroutines.sync.Mutex
Constructors #
MetrickingMutex | fun MetrickingMutex(metricManager: MetricsManager, locked: Boolean = false) |