fastapi / asyncer

Asyncer, async and await, focused on developer experience.
https://asyncer.tiangolo.com/
MIT License
1.62k stars 57 forks source link

fix: delete deprecation warning of anyio in asyncify decorator #147

Closed baaaqt closed 3 weeks ago

baaaqt commented 4 months ago

Deleted deprecation warning for anyio>=4.1.0. Using asyncify shows warning message:

.venv/lib/python3.11/site-packages/asyncer/_main.py:365: DeprecationWarning: The `cancellable=` keyword argument to `anyio.to_thread.run_sync` is deprecated since AnyIO 4.1.0; use `abandon_on_cancel=` instead

This PR fixed it

tiangolo commented 3 weeks ago

Thanks! This was solved in https://github.com/fastapi/asyncer/pull/202 :nerd_face:

This is available in Asyncer 0.0.8, just released. :tada:

I'll now close this one, but thanks for the interest! :coffee: