synchronize-fiber-count

1.0.0 • Public • Published

synchronize-fiber-count

  • Do you use synchronize.js?
  • Have you ever wondered how many fibers you're making?
  • Well now you can find out!
let sync = require('synchronize');
let FiberCounter = require('synchronize-fiber-count');
 
let counter = new FiberCount({
    sync,
    interval: 5, // Report the new fibers created every 5 seconds
    unit: 's'
});
 
counter.on('count', (numFibers) => {
  console.log('there have been %d new fibers', numFibers);
});
 
counter.start(); // We can later stop it with counter.stop()

Package Sidebar

Install

npm i synchronize-fiber-count

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ttacon