Support for yield from was deprecated and removed so it should be removed.
See
|
# The indirection fut->child_coro is needed since otherwise the |
|
# gathering task is done at the same time as the child future |
|
def child_coro(): |
|
return (yield from fut) |
|
gather_future = asyncio.gather(child_coro()) |
|
return asyncio.ensure_future(gather_future) |
|
gather_task = loop.run_until_complete(create()) |
|
|
Linked PRs
Support for
yield fromwas deprecated and removed so it should be removed.See
cpython/Lib/test/test_asyncio/test_tasks.py
Lines 2093 to 2100 in cd67c1b
Linked PRs
yield fromusage fromasynciotests #100114