Sha256: e56672f1cf34e0be38f3c28c164810c878a243918d19bd0ac82d701209b5b9a2

Contents?: true

Size: 402 Bytes

Versions: 43

Compression:

Stored size: 402 Bytes

Contents

/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
let promise

module.exports = typeof queueMicrotask === 'function'
  ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global)
  // reuse resolved promise, and allocate it lazily
  : cb => (promise || (promise = Promise.resolve()))
    .then(cb)
    .catch(err => setTimeout(() => { throw err }, 0))

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
immosquare-cleaner-0.1.28 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.27 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.26 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.25 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.24 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.23 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.22 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.21 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.20 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.19 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.18 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.17 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.16 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.14 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.13 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.12 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.11 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.10 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.9 node_modules/queue-microtask/index.js
immosquare-cleaner-0.1.8 node_modules/queue-microtask/index.js