This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo/build/timer/polyfillNextTick.js
2021-04-02 02:24:13 +03:00

10 lines
345 B
JavaScript

/**
* Defines a small polyfill for process.nextTick. Eventually we'd like to replace this polyfill with
* a native implementation with the correct timing semantics.
*/
if (!process.nextTick) {
process.nextTick = (callback, ...args) => {
setTimeout(() => callback(...args), 0);
};
}
//# sourceMappingURL=polyfillNextTick.js.map