Skip to content

Instantly share code, notes, and snippets.

@deepal
Created June 16, 2019 00:37
Show Gist options
  • Select an option

  • Save deepal/5160049e43e6eec11ab37ae41e2d2c5f to your computer and use it in GitHub Desktop.

Select an option

Save deepal/5160049e43e6eec11ab37ae41e2d2c5f to your computer and use it in GitHub Desktop.
Async Hooks: After
InternalCallbackScope::~InternalCallbackScope() {
Close();
}
void InternalCallbackScope::Close() {
// ...redacted
if (async_context_.async_id != 0) {
AsyncWrap::EmitAfter(env_, async_context_.async_id);
}
// ...redacted
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment