@@ -529,24 +529,39 @@ Improved Modules
529529asyncio
530530-------
531531
532- * Add raw datagram socket functions to the event loop:
533- :meth: `~asyncio.AbstractEventLoop.sock_sendto `,
534- :meth: `~asyncio.AbstractEventLoop.sock_recvfrom ` and
535- :meth: `~asyncio.AbstractEventLoop.sock_recvfrom_into `.
536- (Contributed by Alex Grönholm in :issue: `46805 `.)
532+ * Added :class: `~asyncio.TaskGroup ` class,
533+ an :ref: `asynchronous context manager <async-context-managers >`
534+ holding a group of tasks that will wait for all of them upon exit.
535+ For new code this is recommended over using
536+ :class: `~asyncio.create_task ` and `~asyncio.gather ` directly.
537+ (Contributed by Yury Seliganov and others in :gh: `31270 `.)
538+
539+ * Added :func: `~asyncio.timeout ` context manager for setting a timeout
540+ on asynchronous operations. For new code this is recommended over
541+ using :func: `~asyncio.wait_for ` directly.
542+ (Contributed by Andrew Svetlov in :gh: `31394 `.)
543+
544+ * Added :class: `~asyncio.Runner ` class, which exposes the machinery
545+ used by `:func: `~asyncio.run `. (Contributed by Andrew Svetlov
546+ in :gh: `31799 `.)
537547
538- * Add :meth: `~asyncio.streams.StreamWriter.start_tls ` method for upgrading
548+ * Added :class: `~asyncio.Barrier ` class to the synchronization primitives
549+ in the asyncio library, and :exc: `~asyncio.BrokenBarrierError `.
550+ (Contributed by Yves Duprat and Andrew Svetlov in :gh: `87518 `.)
551+
552+ * Added :meth: `~asyncio.streams.StreamWriter.start_tls ` method for upgrading
539553 existing stream-based connections to TLS. (Contributed by Ian Good in
540554 :issue: `34975 `.)
541555
542- * Add :class: `~asyncio.Barrier ` class to the synchronization primitives of
543- the asyncio library. (Contributed by Yves Duprat and Andrew Svetlov in
544- :gh: `87518 `.)
556+ * Added raw datagram socket functions to the event loop:
557+ :meth: `~asyncio.AbstractEventLoop.sock_sendto `,
558+ :meth: `~asyncio.AbstractEventLoop.sock_recvfrom ` and
559+ :meth: `~asyncio.AbstractEventLoop.sock_recvfrom_into `.
560+ (Contributed by Alex Grönholm in :issue: `46805 `.)
545561
546- * Add :class: `~asyncio.TaskGroup ` class,
547- an :ref: `asynchronous context manager <async-context-managers >`
548- holding a group of tasks that will wait for all of them upon exit.
549- (Contributed by Yury Seliganov and others.)
562+ * Added :meth: `~asyncio.Task.cancelling ` and
563+ :meth: `~asyncio.Task.uncancel ` methods. These are primarily intended
564+ for internal use, notably by :class: `~asyncio.TaskGroup `.
550565
551566contextlib
552567----------
0 commit comments