Skip to content

Instantly share code, notes, and snippets.

Last active Nov 12, 2017
What would you like to do?
const getContext = function (asyncId = AsyncHooks.executionAsyncId()) {
// this returns the context linked to a given asynchronous id, by default, current asynchronous id is used.
return context.get(asyncId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment