Skip to content

bpo-32311: Drop asyncio.create_task#5244

Closed
asvetlov wants to merge 2 commits intopython:masterfrom
asvetlov:drop-createtask
Closed

bpo-32311: Drop asyncio.create_task#5244
asvetlov wants to merge 2 commits intopython:masterfrom
asvetlov:drop-createtask

Conversation

@asvetlov
Copy link
Copy Markdown
Contributor

@asvetlov asvetlov commented Jan 19, 2018

As discussed with @1st1 asyncio.create_task should not be exposed.

https://bugs.python.org/issue32311

@asvetlov asvetlov requested a review from 1st1 as a code owner January 19, 2018 13:10
@asvetlov asvetlov changed the title bpo-32311: Drop asyncio.createtask bpo-32311: Drop asyncio.create_task Jan 19, 2018
@1st1
Copy link
Copy Markdown
Member

1st1 commented Jan 20, 2018

@asvetlov After much consideration I think we should keep create_task in 3.7. While we know that there might be better way to manage tasks, we need to make asyncio approachable now. I'd like to rewrite asyncio docs before 3.7 comes out and focus on async/await more than on event loops and transports, and we need create_task as a sane and clear alternative to ensure_future and loop.create_task.

@1st1 1st1 closed this Jan 20, 2018
@asvetlov
Copy link
Copy Markdown
Contributor Author

Good to me.

@asvetlov asvetlov deleted the drop-createtask branch January 20, 2018 19:48
@socketpair
Copy link
Copy Markdown
Contributor

socketpair commented May 14, 2018

@asvetlov I'm confused about presence / absence of asyncio.create_task() in future (and present) versions of Python. Please explain current situation and what is planned.

@asvetlov
Copy link
Copy Markdown
Contributor Author

It's present starting from 3.7
In future versions more powerful task group object will be the recommended API (most likely).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants