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

Why does rayon not use tokio? #1203

Open
isaac-weisberg opened this issue Oct 20, 2024 · 1 comment
Open

Why does rayon not use tokio? #1203

isaac-weisberg opened this issue Oct 20, 2024 · 1 comment

Comments

@isaac-weisberg
Copy link

I see that there is rayon-core, and I was almost under an impression that it pretty much just an multithreaded asynchronous programming runtime.

So it made me wonder, couldn't it be replaced by tokio?

@cuviper
Copy link
Member

cuviper commented Oct 21, 2024

The simple answer is that rayon-core predates tokio, by several years. But rayon-core is not asynchronous in the sense of the language async and .await features, so I doubt it would work well within tokio's pool anyway.

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