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' } ]
// }
});
Package Sidebar
Install
Weekly Downloads