1.1.0 • Published 3 years ago

async-statistic v1.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

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' } ]
    // }
  });
1.1.0

3 years ago

1.0.1

3 years ago