utils: "parallel" -> "concurrent"

This commit is contained in:
Rusty Bird 2021-02-15 14:10:41 +00:00
parent e0fcbd3498
commit 7860c3b365
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -253,8 +253,8 @@ def coro_maybe(value):
@asyncio.coroutine @asyncio.coroutine
def void_coros_maybe(values): def void_coros_maybe(values):
''' Ignore elements of the iterable values that are not coroutine ''' Ignore elements of the iterable values that are not coroutine
objects. Run all coroutine objects to completion, in parallel objects. Run all coroutine objects to completion, concurrent
to each other. If there were exceptions, re-raise the leftmost with each other. If there were exceptions, raise the leftmost
one (not necessarily chronologically first). Return nothing. one (not necessarily chronologically first). Return nothing.
''' '''
coros = [val for val in values if asyncio.iscoroutine(val)] coros = [val for val in values if asyncio.iscoroutine(val)]