Deprecate synchronized function in common stdlib #KT-26595
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user