Document cancelation semantics for as_completed
This commit is contained in:
parent
42367d18ef
commit
1150d47678
|
@ -29,6 +29,9 @@ async def as_completed(
|
|||
Unlike `asyncio.as_completed`, this yields actual results, and does not require
|
||||
awaiting each item in the iterable.
|
||||
|
||||
Cancels all remaining awaitables if a timeout is given and the timeout threshold
|
||||
is reached.
|
||||
|
||||
Example::
|
||||
|
||||
async for value in as_completed(futures):
|
||||
|
|
Loading…
Reference in New Issue