File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ const { registerDestroyHook } = internal_async_hooks;
3131const {
3232 executionAsyncId,
3333 triggerAsyncId,
34+ getActiveRequests,
35+ getActiveHandles,
3436 // Private API
3537 hasAsyncIdStack,
3638 getHookArrays,
@@ -348,6 +350,8 @@ module.exports = {
348350 executionAsyncId,
349351 triggerAsyncId,
350352 executionAsyncResource,
353+ getActiveRequests,
354+ getActiveHandles,
351355 // Embedder API
352356 AsyncResource,
353357} ;
Original file line number Diff line number Diff line change @@ -540,9 +540,20 @@ function triggerAsyncId() {
540540}
541541
542542
543+ function getActiveRequests ( ) {
544+ return process . _getActiveRequests ( ) ;
545+ }
546+
547+ function getActiveHandles ( ) {
548+ return process . _getActiveHandles ( ) ;
549+ }
550+
551+
543552module . exports = {
544553 executionAsyncId,
545554 triggerAsyncId,
555+ getActiveRequests,
556+ getActiveHandles,
546557 // Private API
547558 getHookArrays,
548559 symbols : {
You can’t perform that action at this time.
0 commit comments