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

singleflight remove explicit threadpool #169

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

assafvayner
Copy link
Contributor

@assafvayner assafvayner commented Feb 10, 2025

Removing threadpool references in the singleflight crate. The crate uses Handle::current().spawn() to spawn tasks. If a work call is issued within a runtime within a xet_threadpool::ThreadPool runtime it will use that tokio runtime handle to spawn tasks.

@assafvayner assafvayner changed the title singleflight threadpool optional singleflight remove explicit threadpool Feb 10, 2025
Copy link
Collaborator

@hoytak hoytak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@assafvayner assafvayner merged commit 85d6222 into main Feb 10, 2025
2 checks passed
@assafvayner assafvayner deleted the assaf/singleflight-threadpool-optional branch February 10, 2025 23:15
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

Successfully merging this pull request may close these issues.

2 participants