Yokan / rebuild
Course 1 8624561

PlatformLock.jvm.kt

composeApp/src/jvmCommonMain/kotlin/eu/friedcutlet/yokan/util/PlatformLock.jvm.kt

implementation10 lines
1package eu.friedcutlet.yokan.util23import java.util.concurrent.locks.ReentrantLock4import kotlin.concurrent.withLock56internal actual class PlatformLock actual constructor() {7    private val delegate = ReentrantLock()89    actual fun <T> withLock(block: () -> T): T = delegate.withLock(block)10}11

Search chapters, reference and source filenames.