aioplus.aempty

async aioplus.aempty(aiterable, /)

Return True if aiterable is empty, False otherwise.

Parameters:

aiterable (AsyncIterable[Any]) – An asynchronous iterable of objects.

Returns:

True if aiterable is empty, False otherwise.

Return type:

bool

Examples

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

Notes

  • Short-circuits on the first object.