kotlin.synchronized

synchronized

inline fun <R> synchronized(lock: Any, block: () -> R): R

Executes the given function block while holding the monitor of the given object lock.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kot