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

disallow reentrancy #380

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

disallow reentrancy #380

wants to merge 1 commit into from

Commits on Nov 17, 2023

  1. disallow reentrancy

    Reentrancy causes event reordering and stack explosions, in addition to
    leading to hard-to-debug scenarios.
    
    Since none of chronos is actually tested under reentrant conditions (ie
    that all features such as exceptions, cancellations, buffer operations,
    timers etc work reliably when the loop is reentered), this is hard to
    support over time and prevents useful optimizations - this PR simply
    detects and disallows the behaviour to remove the uncertainty,
    simplifying reasoning about the event loop in general.
    arnetheduck committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    50abdc4 View commit details
    Browse the repository at this point in the history