Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function Delay (d) {
d = d || 100
return pull.asyncMap(function (data, cb) {
setTimeout(function () {
cb(null, data)
}, ~~(d + Math.random()*d))
})
}