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.3 node_modules/babel-helper-hoist-variables/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-optimise-call-expression/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-regex/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-remap-async-to-generator/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-replace-supers/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-replace-supers/node_modules/core-js/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-plugin-check-es2015-constants/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-external-helpers/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-external-helpers/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-syntax-function-bind/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-syntax-function-bind/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-async-to-generator/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-arrow-functions/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-block-scoping/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-block-scoping/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-classes/node_modules/core-js/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/core-js/library/modules/core.delay.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-plugin-transform-es2015-destructuring/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