aioplus.aall

async aioplus.aall(aiterable, /)

Return True if all elements of the async iterable evaluate to True.

Parameters:

aiterable (AsyncIterable of SupportsBool) – An asynchronous iterable of objects supporting object.__bool__().

Returns:

True if all elements evaluate to True, or if the iterable is empty. False if any element evaluates to False.

Return type:

bool

Examples

>>> aiterable = arange(23)
>>> await aall(aiterable)
False

Notes

  • Short-circuits on the first object that evaluates to False.

See also

all()