Interfaces for generators and context managers.