File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def setup(self) -> None:
6464 if self ._backend == "trio" :
6565 self ._trio_lock = trio .Lock ()
6666 elif self ._backend == "asyncio" :
67- self ._anyio_lock = anyio .Lock ()
67+ self ._anyio_lock = anyio .Lock (fast_acquire = True )
6868
6969 async def __aenter__ (self ) -> "AsyncLock" :
7070 if not self ._backend :
@@ -167,7 +167,7 @@ def setup(self) -> None:
167167 )
168168 elif self ._backend == "asyncio" :
169169 self ._anyio_semaphore = anyio .Semaphore (
170- initial_value = self ._bound , max_value = self ._bound
170+ initial_value = self ._bound , max_value = self ._bound , fast_acquire = True
171171 )
172172
173173 async def acquire (self ) -> None :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ trio = [
4444 " trio>=0.22.0,<0.26.0" ,
4545]
4646asyncio = [
47- " anyio>=4.0,<5.0" ,
47+ " anyio>=4.5. 0,<5.0" ,
4848]
4949
5050[project .urls ]
You can’t perform that action at this time.
0 commit comments