Sha256: 16d8dea95c71a93ad5a20022e62ddb83091ec85caaefd047e24f8c07c8370052
Contents?: true
Size: 406 Bytes
Versions: 64
Compression:
Stored size: 406 Bytes
Contents
var global = require('./_global'); var core = require('./_core'); var $export = require('./_export'); var 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
64 entries across 29 versions & 8 rubygems