Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop @asyncio.coroutine in favor of async/await keywords #7

Closed
balloob opened this issue Nov 24, 2020 · 0 comments · Fixed by #8
Closed

Drop @asyncio.coroutine in favor of async/await keywords #7

balloob opened this issue Nov 24, 2020 · 0 comments · Fixed by #8

Comments

@balloob
Copy link

balloob commented Nov 24, 2020

Python 3.5 (released 2015) introduced new async and await keywords. They replace the @asyncio.coroutine decorator and yield from.

The @asyncio.coroutine decorator has been deprecated in Python 3.8 and will be removed in Python 3.10.

It would be great if this package could migrate to using async and await keywords.

# Old
@asyncio.coroutine
def something():
    yield from asyncio.sleep(1)

# New
async def something():
    await asyncio.sleep(1)
hrnciar added a commit to hrnciar/pyblackbird that referenced this issue Jun 30, 2022
hrnciar added a commit to hrnciar/pyblackbird that referenced this issue Jun 30, 2022
hrnciar added a commit to hrnciar/pyblackbird that referenced this issue Jun 30, 2022
@koolsb koolsb closed this as completed in #8 Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant