Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async_hooks: buffer bootstrap events #29848

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
fixup example api
guybedford committed Oct 6, 2019
commit c28ae364a4e3cfbc251f68591eedda93a9eca6ff
2 changes: 1 addition & 1 deletion doc/api/async_hooks.md
Original file line number Diff line number Diff line change
@@ -323,7 +323,7 @@ elaborate to make calling context easier to see.
let indent = 0;
const bootstrapIds = new Set();
async_hooks.createHook({
init(asyncId, type, triggerAsyncId, bootstrap) {
init(asyncId, type, triggerAsyncId, resource, bootstrap) {
if (bootstrap) {
bootstrapIds.add(asyncId);
return;