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 @@ -65,7 +65,7 @@ def setup(self) -> None:
6565 if self ._backend == "trio" :
6666 self ._trio_lock = trio .Lock ()
6767 elif self ._backend == "asyncio" :
68- self ._anyio_lock = anyio .Lock ()
68+ self ._anyio_lock = anyio .Lock (fast_acquire = True )
6969
7070 async def __aenter__ (self ) -> AsyncLock :
7171 if not self ._backend :
@@ -168,7 +168,7 @@ def setup(self) -> None:
168168 )
169169 elif self ._backend == "asyncio" :
170170 self ._anyio_semaphore = anyio .Semaphore (
171- initial_value = self ._bound , max_value = self ._bound
171+ initial_value = self ._bound , max_value = self ._bound , fast_acquire = True
172172 )
173173
174174 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,<1.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