Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Tear down generators when destroyed #4

Description

@s4y

To respect RAII, if a generator is destroyed we should raise an exception from yield() (like Python)

There's a lot of undefined behavior right now with running off the ends of and destroying generators in general, I want to look over it.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions