hey folks, i’m writing a sprint boot web server in...
# getting-started
j
hey folks, i’m writing a sprint boot web server in kotlin and i’ve come across a library (written in java) that has a
synchronized
block, do i have to do anything special to call this function and ensure it completes?
m
nothing to do, a synchronized block uses a thread lock under the hood and blocks execution until complete. It’s a Java synchronization primitive.