Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""
Create a new event that emits the yielded values from the
asynchronous iterator.
The asynchronous iterator serves as a source for both the time
and value of emits.
:meth:`aiterate` and :meth:`__aiter__` are each other's inverse.
Args:
ait: The asynchronous source iterator. It must ``await``
at least once; If necessary use::
await asyncio.sleep(0)
"""
return Aiterate(ait)