wiimote-gamepad/sleep.js

4 lines
100 B
JavaScript

const util = require("util");
module.exports = util.promisify((time, cb) => setTimeout(cb, time));