Function isAsyncGeneratorFunction

Checks if value is a AsyncGeneratorFunction, eg async function* () {}

When you call an AsyncGeneratorFunction, it returns an AsyncGenerator, that you can loop with for await (const x of asyncGenerator()) {}, or better yet for await (const [item] of z.loop(asyncGenerator())) {}