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
I am curious about what kinds of leaks are cause by generators. I can see in the example, when setting an Interval you would need a means of clearing it, but most other things can be garbage collected along with the generator correct?
I'd also recommend that the recommendation be simpler and stronger...why show generators in the first place? You could mention generators + leaks but I'd leave off the code example.
We should teach people that this is the recommended way of dealing with AsyncGenerators as it solves a lot of leak issues.
The text was updated successfully, but these errors were encountered: