bpo-36373: Deprecate explicit loop in task and subprocess API (GH-16033) · python/cpython@a488879 (original) (raw)
`@@ -334,6 +334,9 @@ Running Tasks Concurrently
`
334
334
` cancellation of one submitted Task/Future to cause other
`
335
335
` Tasks/Futures to be cancelled.
`
336
336
``
``
337
`+
.. deprecated-removed:: 3.8 3.10
`
``
338
`+
The loop parameter.
`
``
339
+
337
340
` .. _asyncio_example_gather:
`
338
341
``
339
342
` Example::
`
`@@ -411,6 +414,9 @@ Shielding From Cancellation
`
411
414
` except CancelledError:
`
412
415
` res = None
`
413
416
``
``
417
`+
.. deprecated-removed:: 3.8 3.10
`
``
418
`+
The loop parameter.
`
``
419
+
414
420
``
415
421
`Timeouts
`
416
422
`========
`
`@@ -478,22 +484,12 @@ Waiting Primitives
`
478
484
` set concurrently and block until the condition specified
`
479
485
` by return_when.
`
480
486
``
481
``
`-
.. deprecated:: 3.8
`
482
``
-
483
``
`-
If any awaitable in aws is a coroutine, it is automatically
`
484
``
`-
scheduled as a Task. Passing coroutines objects to
`
485
``
``wait()`` directly is deprecated as it leads to
486
``
`` -
:ref:confusing behavior <asyncio_example_wait_coroutine>
.
``
487
``
-
488
487
``` Returns two sets of Tasks/Futures: (done, pending)
.
`489`
`488`
``
`490`
`489`
` Usage::
`
`491`
`490`
``
`492`
`491`
` done, pending = await asyncio.wait(aws)
`
`493`
`492`
``
`494`
``
`-
.. deprecated-removed:: 3.8 3.10
`
`495`
``
`-
The *loop* parameter.
`
`496`
``
`-`
`497`
`493`
` *timeout* (a float or int), if specified, can be used to control
`
`498`
`494`
` the maximum number of seconds to wait before returning.
`
`499`
`495`
``
`@@ -525,6 +521,17 @@ Waiting Primitives
`
`525`
`521`
``` Unlike :func:`~asyncio.wait_for`, ``wait()`` does not cancel the
526
522
` futures when a timeout occurs.
`
527
523
``
``
524
`+
.. deprecated:: 3.8
`
``
525
+
``
526
`+
If any awaitable in aws is a coroutine, it is automatically
`
``
527
`+
scheduled as a Task. Passing coroutines objects to
`
``
528
``wait()`` directly is deprecated as it leads to
``
529
`` +
:ref:confusing behavior <asyncio_example_wait_coroutine>
.
``
``
530
+
``
531
`+
.. deprecated-removed:: 3.8 3.10
`
``
532
+
``
533
`+
The loop parameter.
`
``
534
+
528
535
` .. _asyncio_example_wait_coroutine:
`
529
536
` .. note::
`
530
537
``
`@@ -568,6 +575,9 @@ Waiting Primitives
`
568
575
`` Raises :exc:asyncio.TimeoutError
if the timeout occurs before
``
569
576
` all Futures are done.
`
570
577
``
``
578
`+
.. deprecated-removed:: 3.8 3.10
`
``
579
`+
The loop parameter.
`
``
580
+
571
581
` Example::
`
572
582
``
573
583
` for f in as_completed(aws):
`
`@@ -694,6 +704,9 @@ Task Object
`
694
704
` .. versionchanged:: 3.8
`
695
705
``` Added the name
parameter.
```
696
706
``
``
707
`+
.. deprecated-removed:: 3.8 3.10
`
``
708
`+
The loop parameter.
`
``
709
+
697
710
` .. method:: cancel()
`
698
711
``
699
712
` Request the Task to be cancelled.
`