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: add sync enterWith to async storage #31945

Closed
wants to merge 1 commit into from

Commits on Mar 9, 2020

  1. async_hooks: add sync enterWith to async storage

    This allows transitioning the entire following sync and async execution
    sub-tree to the given async storage context. With this one can be sure
    the context binding will remain for any following sync activity and all
    descending async execution whereas the `run*(...)` methods must wrap
    everything that is intended to exist within the context. This is helpful
    for scenarios such as prepending a `'connection'` event to an http server
    which binds everything that occurs within each request to the given
    context. This is helpful for APMs to minimize the need for patching and
    especially adding closures.
    Qard committed Mar 9, 2020
    Copy the full SHA
    6960bb7 View commit details
    Browse the repository at this point in the history