Skip to content

Comments

Add semaphore to AsyncFileSystemWrapper#1908

Merged
martindurant merged 3 commits intofsspec:masterfrom
martindurant:async_sema
Aug 19, 2025
Merged

Add semaphore to AsyncFileSystemWrapper#1908
martindurant merged 3 commits intofsspec:masterfrom
martindurant:async_sema

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