doc: add snippet for AsyncResource and EE integration
Continuation of #33736
Adds a snippet for AsyncResource
+ EventEmitter
integration, based on asyncResource.runInAsyncScope.bind
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines