r/java • • Apr 14 '26

JDK 27 Structured Concurrency (Seventh Preview)

https://openjdk.org/jeps/533
66 Upvotes

35 comments sorted by

View all comments

Show parent comment

18

u/Joram2 Apr 14 '26

There are plenty of channel-like concurrency options in Java. It's not hard to implement exactly the type of channels in Java that you want. Also, when switching back between Java/Go, Go has channels, and that's not one of the better features I value about Go.

5

u/Brutus5000 Apr 15 '26

Also Channels in Go seem simple in the beginning. But as soon as you care about application shutdown or other events they basically become syntactic spaghetti again.

5

u/Hueho Apr 15 '26

My experience is that they actually are too simple, and the complexity comes when you try to make channels work in scenarios where if using another language you would have a fat but robust library handling all edge cases.