Join Slack
hey folks, i’m writing a sprint boot web server in kotlin and i’ve come across a library (written in...
# getting-started
j
John Pena
04/27/2021, 3:48 PM
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
Matteo Mirk
05/05/2021, 11:04 AM
nothing to do, a synchronized block uses a thread lock under the hood and blocks execution until complete. It’s a Java synchronization primitive.
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by