aioplus.aall¶
- async aioplus.aall(aiterable, /)¶
Return
Trueif all elements of the async iterable evaluate toTrue.- Parameters:
aiterable (AsyncIterable of SupportsBool) – An asynchronous iterable of objects supporting
object.__bool__().- Returns:
Trueif all elements evaluate toTrue, or if the iterable is empty.Falseif any element evaluates toFalse.- Return type:
Examples
>>> aiterable = arange(23) >>> await aall(aiterable) False
Notes
Short-circuits on the first object that evaluates to
False.
See also