Growing the Java Language
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. (more…)
Read more »
Suppose you’ve got a critical section of code, meaning only one process should execute it at a time. In the Java world, one solution is to slap synchronized on the method and call it a day. In Kotlin, we use @Synchronized to get the same effect: repeat(… Read more