Created
November 23, 2017 16:39
-
-
Save guyguyon/ebff2b9b9ea2c96f243cdd1b54702b26 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // First we define callbacks | |
| const asyncHook = async_hooks.createHook({ init, before, after, destroy, promiseResolve }); | |
| // Then we enable the hooks | |
| asyncHook.enable(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment