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

Version Path
babel-schmooze-sprockets-0.1.0 node_modules/babel-helpers/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-helper-remap-async-to-generator/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-helper-remap-async-to-generator/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-generator/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-generator/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-core/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-core/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-register/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-polyfill/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-es3-property-literals/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-polyfill/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-function-bind/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-function-bind/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-register/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-polyfill/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-polyfill/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-register/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-register/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.0.alpha.2 node_modules/babel-register/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.0.alpha.2 node_modules/babel-register/node_modules/core-js/library/modules/core.delay.js