<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/asyncio, branch faster-bytes-iter</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-41317: Remove reader on cancellation in asyncio.loop.sock_accept() (#21595)</title>
<updated>2020-07-23T19:45:08+00:00</updated>
<author>
<name>Alex Grönholm</name>
<email>alex.gronholm@nextday.fi</email>
</author>
<published>2020-07-23T19:45:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0dd98c2d00a75efbec19c2ed942923981bc06683'/>
<id>0dd98c2d00a75efbec19c2ed942923981bc06683</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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>
<entry>
<title>bpo-41273: asyncio's proactor read transport's better performance by using recv_into instead of recv (#21442)</title>
<updated>2020-07-14T19:41:24+00:00</updated>
<author>
<name>Tony Solomonik</name>
<email>tony.solomonik@gmail.com</email>
</author>
<published>2020-07-14T19:41:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=568fb0ff4aa641329261cdde20795b0aa9278175'/>
<id>568fb0ff4aa641329261cdde20795b0aa9278175</id>
<content type='text'>
* bpo-41273: Proactor transport read loop to use recv_into

By using recv_into instead of recv we do not allocate a new buffer each
time _loop_reading calls recv.

This betters performance for any stream using proactor (basically any
asyncio stream on windows).

* bpo-41273: Double proactor read transport buffer size

By doubling the read buffer size we get better performance.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-41273: Proactor transport read loop to use recv_into

By using recv_into instead of recv we do not allocate a new buffer each
time _loop_reading calls recv.

This betters performance for any stream using proactor (basically any
asyncio stream on windows).

* bpo-41273: Double proactor read transport buffer size

By doubling the read buffer size we get better performance.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks() (GH-20874)</title>
<updated>2020-07-02T03:41:21+00:00</updated>
<author>
<name>Rémi Lapeyre</name>
<email>remi.lapeyre@lenstra.fr</email>
</author>
<published>2020-07-02T03:41:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=004e64e8059fe68a72890314673282f2e60d5ce1'/>
<id>004e64e8059fe68a72890314673282f2e60d5ce1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix asyncio.to_thread() documented return type (GH-20547)</title>
<updated>2020-05-31T07:07:04+00:00</updated>
<author>
<name>Kyle Stanley</name>
<email>aeros167@gmail.com</email>
</author>
<published>2020-05-31T07:07:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2b201369b435a4266bda5b895e3b615dbe28ea6e'/>
<id>2b201369b435a4266bda5b895e3b615dbe28ea6e</id>
<content type='text'>
When I wrote the documentation for `asyncio.to_thread()`, I mistakenly assumed that `return await loop.run_in_executor(...)` within an async def function would return a Future. In reality, it returns a coroutine.

This likely won't affect typical usage of `asyncio.to_thread()`, but it's important for the documentation to be correct here. In general, we also tend to avoid returning futures from high-level APIs in asyncio.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When I wrote the documentation for `asyncio.to_thread()`, I mistakenly assumed that `return await loop.run_in_executor(...)` within an async def function would return a Future. In reality, it returns a coroutine.

This likely won't affect typical usage of `asyncio.to_thread()`, but it's important for the documentation to be correct here. In general, we also tend to avoid returning futures from high-level APIs in asyncio.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30064: Fix asyncio loop.sock_* race condition issue (#20369)</title>
<updated>2020-05-27T19:47:30+00:00</updated>
<author>
<name>Fantix King</name>
<email>fantix.king@gmail.com</email>
</author>
<published>2020-05-27T19:47:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=210a137396979d747c2602eeef46c34fc4955448'/>
<id>210a137396979d747c2602eeef46c34fc4955448</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278)</title>
<updated>2020-05-21T05:20:43+00:00</updated>
<author>
<name>Kyle Stanley</name>
<email>aeros167@gmail.com</email>
</author>
<published>2020-05-21T05:20:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0f56263e62ba91d0baae40fb98947a3a98034a73'/>
<id>0f56263e62ba91d0baae40fb98947a3a98034a73</id>
<content type='text'>
Allows contextvars from the main thread to be accessed in the separate thread used in `asyncio.to_thread()`. See the [discussion](https://github.com/python/cpython/pull/20143#discussion_r427808225) in GH-20143 for context.

Automerge-Triggered-By: @aeros</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allows contextvars from the main thread to be accessed in the separate thread used in `asyncio.to_thread()`. See the [discussion](https://github.com/python/cpython/pull/20143#discussion_r427808225) in GH-20143 for context.

Automerge-Triggered-By: @aeros</pre>
</div>
</content>
</entry>
<entry>
<title>s/wakup/wakeup (GH-20250)</title>
<updated>2020-05-20T17:12:37+00:00</updated>
<author>
<name>Kunal Bhalla</name>
<email>bhalla.kunal@gmail.com</email>
</author>
<published>2020-05-20T17:12:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f2947e354c95d246b1836ac78d4c820c420e259b'/>
<id>f2947e354c95d246b1836ac78d4c820c420e259b</id>
<content type='text'>
(as title)

Automerge-Triggered-By: @Mariatta</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(as title)

Automerge-Triggered-By: @Mariatta</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32309: Implement asyncio.to_thread() (GH-20143)</title>
<updated>2020-05-19T03:03:28+00:00</updated>
<author>
<name>Kyle Stanley</name>
<email>aeros167@gmail.com</email>
</author>
<published>2020-05-19T03:03:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cc2bbc2227c3f5ed9d8f6b3bd052e6f9e68279d2'/>
<id>cc2bbc2227c3f5ed9d8f6b3bd052e6f9e68279d2</id>
<content type='text'>
Implements `asyncio.to_thread`, a coroutine for asynchronously running IO-bound functions in a separate thread without blocking the event loop. See the discussion starting from [here](https://github.com/python/cpython/pull/18410#issuecomment-628930973) in GH-18410 for context.

Automerge-Triggered-By: @aeros</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implements `asyncio.to_thread`, a coroutine for asynchronously running IO-bound functions in a separate thread without blocking the event loop. See the discussion starting from [here](https://github.com/python/cpython/pull/18410#issuecomment-628930973) in GH-18410 for context.

Automerge-Triggered-By: @aeros</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31033: Improve the traceback for cancelled asyncio tasks (GH-19951)</title>
<updated>2020-05-18T05:47:31+00:00</updated>
<author>
<name>Chris Jerdonek</name>
<email>chris.jerdonek@gmail.com</email>
</author>
<published>2020-05-18T05:47:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=da742ba826721da84140abc785856d4ccc2d787f'/>
<id>da742ba826721da84140abc785856d4ccc2d787f</id>
<content type='text'>
When an asyncio.Task is cancelled, the exception traceback now
starts with where the task was first interrupted.  Previously,
the traceback only had "depth one."</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When an asyncio.Task is cancelled, the exception traceback now
starts with where the task was first interrupted.  Previously,
the traceback only had "depth one."</pre>
</div>
</content>
</entry>
</feed>
