Skip to content

Add semaphore to AsyncFileSystemWrapper #1908

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

Merged
merged 3 commits into from
Aug 19, 2025

Conversation

martindurant
Copy link
Member

Supersedes #1901

dgegen and others added 3 commits August 1, 2025 16:46
- Initialize a semaphore in AsyncFileSystemWrapper if asynchronous mode is
  disabled. This ensures that concurrent calls are managed safely, preventing
  potential deadlocks in systems that cannot manage concurrent requests.
- Added LockedFileSystem class to test this case.
@martindurant martindurant merged commit cf798ec into fsspec:master Aug 19, 2025
10 checks passed
@martindurant martindurant deleted the async_sema branch August 19, 2025 20:56
@dgegen
Copy link
Contributor

dgegen commented Aug 19, 2025

Great! Thanks for reopening the PR and merging!

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