Skip to content

Conversation

@Otto-AA
Copy link
Collaborator

@Otto-AA Otto-AA commented Jul 8, 2025

If I'm not mistaken, functions with yield statements return a generator object. When we simply return this generator object, the caller should be able to use it normally. I don't think we need special casing for generators, though I may be missing something. It works for the repro of #406 .

Fixes #406

Functions with "yield" return a generator
which we can simply return as a value to
the caller.
@Otto-AA Otto-AA merged commit 968d56f into main Jul 12, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

problems with mutations to async generators

2 participants