@@ -297,6 +297,12 @@ Sleeping
297
297
tasks to run. This can be used by long-running functions to avoid
298
298
blocking the event loop for the full duration of the function call.
299
299
300
+ .. deprecated-removed :: 3.8 3.10
301
+ The ``loop `` parameter. This function has been implicitly getting the
302
+ current running loop since 3.7. See
303
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
304
+ for more information.
305
+
300
306
.. _asyncio_example_sleep :
301
307
302
308
Example of coroutine displaying the current date every second
@@ -317,6 +323,14 @@ Sleeping
317
323
asyncio.run(display_date())
318
324
319
325
326
+ .. deprecated-removed :: 3.8 3.10
327
+
328
+ The ``loop `` parameter. This function has been implicitly getting the
329
+ current running loop since 3.7. See
330
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
331
+ for more information.
332
+
333
+
320
334
Running Tasks Concurrently
321
335
==========================
322
336
@@ -349,6 +363,12 @@ Running Tasks Concurrently
349
363
cancellation of one submitted Task/Future to cause other
350
364
Tasks/Futures to be cancelled.
351
365
366
+ .. deprecated-removed :: 3.8 3.10
367
+ The ``loop `` parameter. This function has been implicitly getting the
368
+ current running loop since 3.7. See
369
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
370
+ for more information.
371
+
352
372
.. _asyncio_example_gather :
353
373
354
374
Example::
@@ -400,6 +420,12 @@ Running Tasks Concurrently
400
420
If the *gather * itself is cancelled, the cancellation is
401
421
propagated regardless of *return_exceptions *.
402
422
423
+ .. deprecated-removed :: 3.8 3.10
424
+ The ``loop `` parameter. This function has been implicitly getting the
425
+ current running loop since 3.7. See
426
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
427
+ for more information.
428
+
403
429
.. deprecated :: 3.10
404
430
Deprecation warning is emitted if no positional arguments are provided
405
431
or not all positional arguments are Future-like objects
@@ -442,6 +468,12 @@ Shielding From Cancellation
442
468
except CancelledError:
443
469
res = None
444
470
471
+ .. deprecated-removed :: 3.8 3.10
472
+ The ``loop `` parameter. This function has been implicitly getting the
473
+ current running loop since 3.7. See
474
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
475
+ for more information.
476
+
445
477
.. deprecated :: 3.10
446
478
Deprecation warning is emitted if *aw * is not Future-like object
447
479
and there is no running event loop.
@@ -473,6 +505,12 @@ Timeouts
473
505
474
506
If the wait is cancelled, the future *aw * is also cancelled.
475
507
508
+ .. deprecated-removed :: 3.8 3.10
509
+ The ``loop `` parameter. This function has been implicitly getting the
510
+ current running loop since 3.7. See
511
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
512
+ for more information.
513
+
476
514
.. _asyncio_example_waitfor :
477
515
478
516
Example::
@@ -500,6 +538,12 @@ Timeouts
500
538
for *aw * to be cancelled. Previously, it raised
501
539
:exc: `asyncio.TimeoutError ` immediately.
502
540
541
+ .. deprecated-removed :: 3.8 3.10
542
+ The ``loop `` parameter. This function has been implicitly getting the
543
+ current running loop since 3.7. See
544
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
545
+ for more information.
546
+
503
547
504
548
Waiting Primitives
505
549
==================
@@ -556,6 +600,12 @@ Waiting Primitives
556
600
``wait() `` directly is deprecated as it leads to
557
601
:ref: `confusing behavior <asyncio_example_wait_coroutine >`.
558
602
603
+ .. deprecated-removed :: 3.8 3.10
604
+ The ``loop `` parameter. This function has been implicitly getting the
605
+ current running loop since 3.7. See
606
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
607
+ for more information.
608
+
559
609
.. _asyncio_example_wait_coroutine :
560
610
.. note ::
561
611
@@ -583,6 +633,13 @@ Waiting Primitives
583
633
if task in done:
584
634
# Everything will work as expected now.
585
635
636
+ .. deprecated-removed :: 3.8 3.10
637
+
638
+ The ``loop `` parameter. This function has been implicitly getting the
639
+ current running loop since 3.7. See
640
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
641
+ for more information.
642
+
586
643
.. deprecated-removed :: 3.8 3.11
587
644
588
645
Passing coroutine objects to ``wait() `` directly is
@@ -599,12 +656,24 @@ Waiting Primitives
599
656
Raises :exc: `asyncio.TimeoutError ` if the timeout occurs before
600
657
all Futures are done.
601
658
659
+ .. deprecated-removed :: 3.8 3.10
660
+ The ``loop `` parameter. This function has been implicitly getting the
661
+ current running loop since 3.7. See
662
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
663
+ for more information.
664
+
602
665
Example::
603
666
604
667
for coro in as_completed(aws):
605
668
earliest_result = await coro
606
669
# ...
607
670
671
+ .. deprecated-removed :: 3.8 3.10
672
+ The ``loop `` parameter. This function has been implicitly getting the
673
+ current running loop since 3.7. See
674
+ :ref: `What's New in 3.10's Removed section <whatsnew310-removed >`
675
+ for more information.
676
+
608
677
.. deprecated :: 3.10
609
678
Deprecation warning is emitted if not all awaitable objects in the *aws *
610
679
iterable are Future-like objects and there is no running event loop.
0 commit comments