Comment Comment by karmakaze Using "synchronized" by itself and calling anything has the potential thread starvation or deadlocks. Virtual threads only makes it worse.Kotlin has mutexes that presumably are compatible with coroutines: kotlinx.coroutines.sync.Mutex Until Java sorts this out, it could be its "Rust async" watershed moment. parent karmakaze 2 years ago
Kotlin has mutexes that presumably are compatible with coroutines:
Until Java sorts this out, it could be its "Rust async" watershed moment.