<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/asyncio/tasks.py, branch enum-private-310</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554)</title>
<updated>2021-04-25T10:40:44+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-04-25T10:40:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=172c0f2752d8708b6dda7b42e6c5a3519420a4e8'/>
<id>172c0f2752d8708b6dda7b42e6c5a3519420a4e8</id>
<content type='text'>
asyncio.get_event_loop() emits now a deprecation warning when it creates a new event loop.
In future releases it will became an alias of asyncio.get_running_loop().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
asyncio.get_event_loop() emits now a deprecation warning when it creates a new event loop.
In future releases it will became an alias of asyncio.get_running_loop().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41891: ensure asyncio.wait_for waits for task completion (#22461)</title>
<updated>2020-12-18T17:26:04+00:00</updated>
<author>
<name>Richard Kojedzinszky</name>
<email>rkojedzinszky@users.noreply.github.com</email>
</author>
<published>2020-12-18T17:26:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=17ef4319a34f5a2f95e7823dfb5f5b8cff11882d'/>
<id>17ef4319a34f5a2f95e7823dfb5f5b8cff11882d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42582: Remove asyncio._all_tasks_compat(). (GH-23664)</title>
<updated>2020-12-06T16:54:33+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-12-06T16:54:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8a62887dfb4bb2835048780ad673362f7ee3c7bf'/>
<id>8a62887dfb4bb2835048780ad673362f7ee3c7bf</id>
<content type='text'>
It was used to implement now removed asyncio.Task.all_tasks().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was used to implement now removed asyncio.Task.all_tasks().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521)</title>
<updated>2020-11-28T08:21:17+00:00</updated>
<author>
<name>Yurii Karabas</name>
<email>1998uriyyo@gmail.com</email>
</author>
<published>2020-11-28T08:21:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e4fe303b8cca525e97d44e80c7e53bdab9dd9187'/>
<id>e4fe303b8cca525e97d44e80c7e53bdab9dd9187</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42392: Remove loop parameter form asyncio locks and Queue (#23420)</title>
<updated>2020-11-24T18:08:54+00:00</updated>
<author>
<name>Yurii Karabas</name>
<email>1998uriyyo@gmail.com</email>
</author>
<published>2020-11-24T18:08:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1'/>
<id>0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1</id>
<content type='text'>
Co-authored-by: Andrew Svetlov &lt;andrew.svetlov@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Andrew Svetlov &lt;andrew.svetlov@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42140: Improve asyncio.wait function (GH-22938)</title>
<updated>2020-11-10T22:12:52+00:00</updated>
<author>
<name>Diogo Dutra</name>
<email>diogodutradamata@gmail.com</email>
</author>
<published>2020-11-10T22:12:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7e5ef0a5713f968f6e942566c78bf57ffbef01de'/>
<id>7e5ef0a5713f968f6e942566c78bf57ffbef01de</id>
<content type='text'>
# Improve asyncio.wait function

The original code creates the futures set two times.
We can create this set before, avoiding the second creation.

This new behaviour [breaks the aiokafka library](https://github.com/aio-libs/aiokafka/pull/672), because it gives an iterator to that function, so the second iteration become empty.

Automerge-Triggered-By: GH:1st1</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
# Improve asyncio.wait function

The original code creates the futures set two times.
We can create this set before, avoiding the second creation.

This new behaviour [breaks the aiokafka library](https://github.com/aio-libs/aiokafka/pull/672), because it gives an iterator to that function, so the second iteration become empty.

Automerge-Triggered-By: GH:1st1</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42230: Improve asyncio documentation regarding accepting sets vs iterables (GH-23073)</title>
<updated>2020-11-02T10:56:35+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-11-02T10:56:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3d86d090dcbbdfdd3e5a5951cab30612d6131222'/>
<id>3d86d090dcbbdfdd3e5a5951cab30612d6131222</id>
<content type='text'>
People call wait() and as_completed() with various non-set iterables,
a list should be the most common but there are others as well[1].

Considering typeshed also documents wait()[2] and as_completed()[3]
as accepting arbitrary iterables I think it's a good idea to document
the status quo better.

[1] https://github.com/aio-libs/aiokafka/pull/672
[2] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyi#L161
[3] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyi#L40</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
People call wait() and as_completed() with various non-set iterables,
a list should be the most common but there are others as well[1].

Considering typeshed also documents wait()[2] and as_completed()[3]
as accepting arbitrary iterables I think it's a good idea to document
the status quo better.

[1] https://github.com/aio-libs/aiokafka/pull/672
[2] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyi#L161
[3] https://github.com/python/typeshed/blob/620989bac572f30349b95590ebe81a73ce0fe862/stdlib/3/asyncio/tasks.pyi#L40</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37658: Fix asyncio.wait_for() to respect waited task status (#21894)</title>
<updated>2020-08-26T16:42:45+00:00</updated>
<author>
<name>Elvis Pranskevichus</name>
<email>elvis@magic.io</email>
</author>
<published>2020-08-26T16:42:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=a2118a14627256197bddcf4fcecad4c264c1e39d'/>
<id>a2118a14627256197bddcf4fcecad4c264c1e39d</id>
<content type='text'>
Currently, if `asyncio.wait_for()` itself is cancelled it will always
raise `CancelledError` regardless if the underlying task is still
running.  This is similar to a race with the timeout, which is handled
already.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, if `asyncio.wait_for()` itself is cancelled it will always
raise `CancelledError` regardless if the underlying task is still
running.  This is similar to a race with the timeout, which is handled
already.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32751: Wait for task cancel in asyncio.wait_for() when timeout &lt;= 0 (#21895)</title>
<updated>2020-08-26T16:42:22+00:00</updated>
<author>
<name>Elvis Pranskevichus</name>
<email>elvis@magic.io</email>
</author>
<published>2020-08-26T16:42:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c517fc712105c8e5930cb42baaebdbe37fc3e15f'/>
<id>c517fc712105c8e5930cb42baaebdbe37fc3e15f</id>
<content type='text'>
When I was fixing bpo-32751 back in GH-7216 I missed the case when
*timeout* is zero or negative.  This takes care of that.

Props to @aaliddell for noticing the inconsistency.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When I was fixing bpo-32751 back in GH-7216 I missed the case when
*timeout* is zero or negative.  This takes care of that.

Props to @aaliddell for noticing the inconsistency.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37703: improve asyncio.gather documentation regarding cancellation (GH-15312)</title>
<updated>2020-07-20T08:42:57+00:00</updated>
<author>
<name>Vinay Sharma</name>
<email>vinay04sharma@icloud.com</email>
</author>
<published>2020-07-20T08:42:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=d42528a3a2c7d79fd2e6c9f2a02f3ce12d44c8cc'/>
<id>d42528a3a2c7d79fd2e6c9f2a02f3ce12d44c8cc</id>
<content type='text'>
These changes updates the doc to comprehensively mention the behaviour of gather.cancel()

Automerge-Triggered-By: @asvetlov</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These changes updates the doc to comprehensively mention the behaviour of gather.cancel()

Automerge-Triggered-By: @asvetlov</pre>
</div>
</content>
</entry>
</feed>
