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

async_hooks: execute destroy hooks earlier #34342

Closed

Commits on Jul 30, 2020

  1. async_hooks: execute destroy hooks faster

    Use a microtask to call destroy hooks in case there are a lot queued
    as immediate may be scheduled late in case of long running
    promise chains.
    
    Queuing a mircrotasks in GC context is not allowed therefore an
    interrupt is triggered to do this in JS context as fast as possible.
    
    fixes: nodejs#34328
    refs: nodejs#33896
    Flarna committed Jul 30, 2020
    Configuration menu
    Copy the full SHA
    1d531f4 View commit details
    Browse the repository at this point in the history
  2. improve readability

    Flarna committed Jul 30, 2020
    Configuration menu
    Copy the full SHA
    9a6b5a6 View commit details
    Browse the repository at this point in the history