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

Use a scheduler instead of ForkJoinPool on JVM? #77

Open
He-Pin opened this issue May 30, 2024 · 2 comments
Open

Use a scheduler instead of ForkJoinPool on JVM? #77

He-Pin opened this issue May 30, 2024 · 2 comments

Comments

@He-Pin
Copy link
Contributor

He-Pin commented May 30, 2024

Motivation:
As in PR com-lihaoyi/cask@17dbf69 I found it's possible to run the virtual thread on another thread pool instead of the default scheduler.

I think that maybe a little lightweight in some cases if the task never forks.
what do you think, I would like to contribute this if you like.

@natsukagami
Copy link
Contributor

Yes, I think this is definitely useful! Perhaps custom thread pools can be implemented as an instance of Scheduler

@He-Pin
Copy link
Contributor Author

He-Pin commented May 31, 2024

Great, that's the whole point, I will prepare it after work today:)

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