async-statistic

1.1.0 • Public • Published

async-statistic

Install

npm install async-statistic

Usage

const statistic = require('async-statistic');
statistic(() => {
  return new Promise(resolve => setTimeout(resolve), 10);
})
  .then(data => {
    console.log(data);
    // print
    // { inRun:
    //   [ { type: 'PROMISE' },
    //     { type: 'Timeout' },
    //     { type: 'TIMERWRAP' },
    //     { type: 'PROMISE' } ],
    //   outRun:
    //   [ { type: 'PROMISE' },
    //     { type: 'PROMISE' } ]
    // }
  });

Readme

Keywords

Package Sidebar

Install

npm i async-statistic

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

3.82 kB

Total Files

4

Last publish

Collaborators

  • bacra