Remove deprecated Common synchronized and deprecate it in JS #KT-46101
This commit is contained in:
@@ -155,6 +155,8 @@ 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.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
|
||||
|
||||
|
||||
@@ -118,6 +118,8 @@ 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.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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user