Sha256: be689a63e6982e6b58803e5a3be09d25eb5a4b577756ff43e014780f0557397e
Contents?: true
Size: 403 Bytes
Versions: 320
Compression:
Stored size: 403 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
320 entries across 8 versions & 3 rubygems