Re:Java 21 makes me like Java again
by bberrry on Saturday September 16, 2023 @06:49PM
(#37539582)
As a Kotlin dev you should still be excited by virtual threads in Java 21. You'll never have to use coroutines again.
[ Parent
| on HN ]
Re:Java 21 makes me like Java again
by ledauphin on Saturday September 16, 2023 @08:26PM
(#37540258)
I'm very curious to see how this works out in the Kotlin ecosystem, given the amount of async code out there (and the associated function coloring issues).
Re:Java 21 makes me like Java again
by mike_hearn on Sunday September 17, 2023 @06:28AM
(#37543508)
You can easily combine the two, just use a virtual thread and when you hit a `suspend` function use `runBlocking` to get rid of the suspension.