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

Use asyncio.create_task instead of asyncio.ensure_future #1739

Merged
merged 3 commits into from
Oct 28, 2022

Conversation

iudeen
Copy link
Contributor

@iudeen iudeen commented Oct 28, 2022

No description provided.

Copy link
Sponsor Member

@Kludex Kludex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

For reference, this is the recommended way, see: https://docs.python.org/3/library/asyncio-future.html#asyncio.ensure_future.

@Kludex Kludex changed the title Use create_task instead of ensure_future Use asyncio.create_task instead of asyncio.ensure_future Oct 28, 2022
@Kludex Kludex merged commit 17f765b into encode:master Oct 28, 2022
@iudeen iudeen deleted the patch/improve-server-test branch October 28, 2022 17:01
Kludex pushed a commit to sephioh/uvicorn that referenced this pull request Oct 29, 2022
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 this pull request may close these issues.

None yet

2 participants