Skip to content

Commit e45c0bb

Browse files
authored
Merge branch 'main' into dependabot/github_actions/tiangolo/issue-manager-0.6.0
2 parents c48acf6 + e1bdee6 commit e45c0bb

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

asyncer/_main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ async def do_work(arg1, arg2, kwarg1="", kwarg2=""):
306306
@functools.wraps(async_function)
307307
def wrapper(*args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs) -> T_Retval:
308308
current_async_module = (
309+
getattr(threadlocals, "current_token", None)
310+
or
311+
# TODO: remove when deprecating AnyIO 4.10.0
309312
getattr(threadlocals, "current_async_backend", None)
310313
or
311314
# TODO: remove when deprecating AnyIO 3.x

docs/release-notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Latest Changes
44

5+
### Fixes
6+
7+
* 👽️ Ensure compatibility with AnyIO 4.11.0. PR [#381](https://github.com/fastapi/asyncer/pull/381) by [@svlandeg](https://github.com/svlandeg).
8+
59
### Docs
610

711
* 🩺 Take the GH badge only from pushes to the `main` branch. PR [#284](https://github.com/fastapi/asyncer/pull/284) by [@svlandeg](https://github.com/svlandeg).

poetry.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)