Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interaction with generators? #51

Closed
dead-claudia opened this issue Apr 23, 2023 · 1 comment
Closed

Interaction with generators? #51

dead-claudia opened this issue Apr 23, 2023 · 1 comment

Comments

@dead-claudia
Copy link

Question: would generators receive async context on create, or only on resume?

Based on my interpretation of the proposed spec, they'd only see what's provided on resume, but this seems pretty dangerous in my opinion. It'd be very surprising (and difficult to debug) for, say, a logger to somehow de-initialize or change targets simply due to the caller being different.

I feel generators (sync and async both) should probably have some sort of story here laid out explicitly.

@jridgewell
Copy link
Member

Closing as a duplicate of #18

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

No branches or pull requests

2 participants