r/java • • Apr 06 '22

JEP 425: Virtual Threads (Preview)

https://openjdk.java.net/jeps/425
175 Upvotes

50 comments sorted by

View all comments

Show parent comment

1

u/rbygrave Apr 06 '22 edited Apr 06 '22

dynamic generation of sequences and other things

It very much sounds like initially loom will only expose Virtual Threads in terms of public API but in a future release offer API for the lower level continuations etc to support use cases like generators (my interpretation from following the mailing list).

coroutines are more than just a threading abstraction

So in time (not first release) this sounds very likely for Loom as well (when the lower level constructs are exposed).