4 lines
100 B
JavaScript
4 lines
100 B
JavaScript
6 years ago
|
const util = require("util");
|
||
|
|
||
|
module.exports = util.promisify((time, cb) => setTimeout(cb, time));
|