Deprecate synchronized function in common stdlib #KT-26595

This commit is contained in:
Ilya Gorbunov
2018-09-05 06:09:59 +03:00
parent cb57444e14
commit 4344005fb5
@@ -80,6 +80,7 @@ public expect fun Float.Companion.fromBits(bits: Int): Float
//@Deprecated("Use Volatile annotation from kotlin.jvm package", ReplaceWith("kotlin.jvm.Volatile"), level = DeprecationLevel.WARNING)
//public typealias Volatile = kotlin.jvm.Volatile
@Deprecated("Synchronization on any object is not supported on every platform and will be removed from the common standard library soon.")
public expect inline fun <R> synchronized(lock: Any, block: () -> R): R