Sha256: 092632a2bff694ffd5a9b44428fcab682724958dbe17141c161708ed11b3b4a2
Contents?: true
Size: 407 Bytes
Versions: 34
Compression:
Stored size: 407 Bytes
Contents
var global = require('./$.global') , core = require('./$.core') , $export = require('./$.export') , partial = require('./$.partial'); // https://esdiscuss.org/topic/promise-returning-delay-function $export($export.G + $export.F, { delay: function delay(time){ return new (core.Promise || global.Promise)(function(resolve){ setTimeout(partial.call(resolve, true), time); }); } });
Version data entries
34 entries across 17 versions & 7 rubygems