Raise deprecation of js synchronized {} to error

This commit is contained in:
Ilya Gorbunov
2023-04-25 23:30:06 +02:00
committed by Space Team
parent 2248f4ea33
commit f260b55810
7 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ public inline fun <R> runCatching(block: () -> R): kotlin.Result<R>
@kotlin.SinceKotlin(version = "1.2")
public inline fun <R> suspend(noinline block: suspend () -> R): suspend () -> R
@kotlin.DeprecatedSinceKotlin(warningSince = "1.6")
@kotlin.DeprecatedSinceKotlin(errorSince = "1.9", warningSince = "1.6")
@kotlin.Deprecated(message = "Synchronization on any object is not supported in Kotlin/JS", replaceWith = kotlin.ReplaceWith(expression = "run(block)", imports = {}))
@kotlin.internal.InlineOnly
public inline fun <R> synchronized(lock: kotlin.Any, block: () -> R): R