Skip to content

carlisliu/async-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

async-hook

async-hook of node

asyncHooks.createHook({
  init(asyncId, type, triggerId) {
      const cId = asyncHooks.currentId();
      fs.writeSync(1, `${type}(${asyncId}): trigger: ${triggerId} scope: ${cId}\n`);
  }
}).enable();

About

async-hook of node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published