inline fun <R> synchronized(lock: Any, block: () -> R): RDeprecated: Synchronization on any object is not supported on every platform and will be removed from the common standard library soon.
inline fun <R> synchronized(lock: Any, block: () -> R): R
An actual implementation of synchronized
method. This method is not supported in Kotlin/Native
UnsupportedOperationException
- always
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/synchronized.html