UNPKG

rascal

Version:

A config driven wrapper for amqplib supporting multi-host connections, automatic error recovery, redelivery flood protection, transparent encryption / decryption, channel pooling and publication timeouts

6 lines (5 loc) 169 B
// See https://github.com/guidesmiths/rascal/issues/89 module.exports = function (fn, millis) { const t = setTimeout(fn, millis); return t.unref ? t.unref() : t; };