I'm looking at the docs of `synchronized` - the lo...
# announcements
j
I'm looking at the docs of
synchronized
- the lock parameter, is that just any variable, String, Int in which case two threads call
synchronized (myvar) { }
at the same time with the same var, only one of the two will execute?
Copy code
inline fun <R> synchronized(lock: Any, block: () -> R): R