Skip to content

Generators

generator() gen()
Create a generator function
yield()
Yield a value from a generator
collect() loop()
Iterate over iterator functions

Async functions

async() await()
Make an async function
async_generator() await_each()
Construct an async generator
async_collect()
Collect elements of an asynchronous iterator
async_sleep()
Sleep asynchronously

Developer tools

as_iterator()
Transform an object to an iterator
exhausted() is_exhausted()
Iterator protocol
coro_debug()
Debug a generator or async function