Generator

An iterator whose function body can suspend at yield and resume through next, return, or throw.

Used in