Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function setup(domain) {
// do whatever to capture state at the time an async function is noticed
}
function before(domain) {
// set up the environment before callback is called
}
function after(domain) {
// clean up after callback is called
}
process._addAsyncListener({setup: setup, before: before, after: after});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.