QuickBEAM.VM.Compiler.GeneratorIterator (QuickBEAM v0.10.9)

Copy Markdown View Source

Iterator protocol for compiled generator functions.

Compiled generators throw {:generator_yield, value, continuation} to suspend. The continuation is a fun(arg) that resumes the generator body from the yield point with arg as the yield return value.

Summary

Functions

Builds the runtime value represented by this module.

Builds async data for iterator protocol for compiled generator functions.

Functions

build(gen_ref)

Builds the runtime value represented by this module.

build_async(gen_ref)

Builds async data for iterator protocol for compiled generator functions.