Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for virtual threads in Java 21 #270

Open
oleg-smith opened this issue Nov 8, 2023 · 1 comment
Open

Support for virtual threads in Java 21 #270

oleg-smith opened this issue Nov 8, 2023 · 1 comment

Comments

@oleg-smith
Copy link

Hello, I want to use Java Virtual Threads for such code:

StreamEx.of().parallel(executor).

Now exectutor can only be a ForkJoinPool.

Is there a way to pass Executors.newVirtualThreadExecutor() or a plan to add support for it?

@loordgek
Copy link

#181

can you set ForkJoinWorkerThread to be virtual??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants