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 proper Task.Run etiquette and make library async if necessary #42

Open
sonicbhoc opened this issue May 4, 2024 · 0 comments
Open

Comments

@sonicbhoc
Copy link

It is not recommended to use Task.Run in reusable code (e.g., libraries like this one) to spin up CPU-intensive workloads or to launch new threads. This should be done at the call site and clearly documented that the work is CPU-bound.

Stephen Cleary has a good article on this.

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

1 participant