stdlib
1.0
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
JVM
stdlib
/
kotlin
/
synchronized
synchronized
JVM
inline
fun
<
R
>
synchronized
(
lock
:
Any
,
block
:
(
)
->
R
)
:
R
(
source
)
Executes the given function
block
while holding the monitor of the given object
lock
.
Since Kotlin
1.0