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

Prevent dtor of generator in suspended fiber #10462

Merged
merged 3 commits into from Jan 27, 2023
Merged

Commits on Jan 27, 2023

  1. Prevent dtor of generator in suspended fiber

    Generators that suspended a fiber should not be dtor because they will be
    executed during the fiber dtor.
    
    Fiber dtor throws an exception in the fiber's context in order to unwind and
    execute finally blocks, which will also properly dtor the generator.
    arnaud-lb committed Jan 27, 2023
    Copy the full SHA
    b811f12 View commit details
    Browse the repository at this point in the history
  2. Add tests

    arnaud-lb committed Jan 27, 2023
    Copy the full SHA
    2ff362d View commit details
    Browse the repository at this point in the history
  3. Fix test

    arnaud-lb committed Jan 27, 2023
    Copy the full SHA
    c191ccf View commit details
    Browse the repository at this point in the history