Hacker News new | past | comments | ask | show | jobs | submit login

Does anyone know if Java virtual threads will also have channels and a select concept, like in Go?



Java already has many more concurrent and parallel data structures, so while it likely won’t have a keyword, it can definitely do it already.


I think at some point yes. We certainly discussed it but it’s one of those things that takes time to really get right and performant.


Just spit balling but you should be able to use clojure core async channels and the blocking put/take/alts functions. Would probably take a small amount of work to expose those things to Java in an idiomatic way but should be doable. Please take all of that with a giant grain of salt though!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: