com.eignex.kumulant/stream/Mutex Mutex interface Mutex(source)Mutual-exclusion lock used by stats whose update logic spans multiple cells or multiple steps and therefore can't be made elementwise atomic. Create one with Mutex. Functions withLock abstract fun <R> withLock(block: () -> R): R(source)Run block holding the lock and return its result.