aboutsummaryrefslogtreecommitdiff
path: root/node_modules/algoliasearch/src/exitPromise.js
blob: 4c6cd0428c6e79997abb61b91b10843cffff07e6 (plain)
1
2
3
4
5
6
7
// Parse cloud does not supports setTimeout
// We do not store a setTimeout reference in the client everytime
// We only fallback to a fake setTimeout when not available
// setTimeout cannot be override globally sadly
module.exports = function exitPromise(fn, _setTimeout) {
  _setTimeout(fn, 0);
};