core / pragma.utils / MetrickingMutex /

MetrickingMutex #

class MetrickingMutex(name: String, metricsManager: 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 60s if it cannot obtain a lock.

References

  • kotlinx.coroutines.sync.Mutex

Constructors #

MetrickingMutex

fun MetrickingMutex(name: String, metricsManager: MetricsManager, locked: Boolean = false)