nor-async-profile
Version:
Q.fcall style interface for async-profile
15 lines (11 loc) • 311 B
JavaScript
/** The `Q.fcall()` style version of async-profile */
;
var _Q = require('q');
var AsyncProfile = require('async-profile');
module.exports = function nor_async_profile(f) {
var p = new AsyncProfile();
return _Q.fcall(f).fin(function nor_async_profile_finally() {
p.stop();
});
};
/** EOF */