Compatibility with deprecated cancellable
argument to anyio
#144
Answered
by
tiangolo
DaniilAnichin
asked this question in
Questions
-
First Check
Commit to Help
Example Codeimport time
import warnings
warnings.simplefilter('always')
import anyio
from asyncer import asyncify
def do_sync_work(name: str):
time.sleep(1)
return f'Hello, {name}'
async def main():
message = await asyncify(do_sync_work)(name='World')
print(message)
anyio.run(main) Description
Operating SystemLinux Operating System DetailsNo response asyncer Version0.0.5 Python Version3.11.2 Additional Contextanyio affected versions are >=0.4.1, released Nov 23 |
Beta Was this translation helpful? Give feedback.
Answered by
tiangolo
Aug 24, 2024
Replies: 1 comment
-
Thanks! This was solved in #202 🤓 This is available in Asyncer 0.0.8, just released. 🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tiangolo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! This was solved in #202 🤓
This is available in Asyncer 0.0.8, just released. 🎉