You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: