Created
August 28, 2013 22:27
-
-
Save othiym23/6372181 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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