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 AsyncResource.bindCurrent() #43033

Closed
wants to merge 1 commit into from

Commits on May 10, 2022

  1. async_hooks: add AsyncResource.bindCurrent()

    This static method does roughly the same thing as AsyncResource.bind(),
    except that it does not create a new AsyncResource. Instead, it relies
    on the existing current one.
    
    This is useful in situations where a callback is intended to be run in
    the _current_ context regardless of when/where it's called.
    bengl committed May 10, 2022
    Configuration menu
    Copy the full SHA
    ceead3c View commit details
    Browse the repository at this point in the history