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
affiliator-0.2.1 node_modules/core-js/library/modules/core.delay.js
affiliator-0.2.1 node_modules/core-js/modules/core.delay.js
lanes-0.8.0 node_modules/babel-register/node_modules/core-js/modules/core.delay.js
lanes-0.8.0 node_modules/babel-runtime/node_modules/core-js/library/modules/core.delay.js
lanes-0.8.0 node_modules/babel-runtime/node_modules/core-js/modules/core.delay.js
lanes-0.8.0 node_modules/babel-register/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-get-function-arity/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-function-name/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-hoist-variables/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-call-delegate/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-generator/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-define-map/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-function-name/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-get-function-arity/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-call-delegate/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-core/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-core/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-code-frame/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-code-frame/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-generator/node_modules/core-js/library/modules/core.delay.js