Files
Schnappix/node_modules/react-native-worklets/lib/module/runLoop/common/setImmediatePolyfill.js
T

15 lines
421 B
JavaScript

'use strict';
export function setupSetImmediate() {
'worklet';
const setImmediatePolyfill = (callback, ...args) => {
return setTimeout(callback, 0, ...args);
};
const clearImmediatePolyfill = immediateHandle => {
clearTimeout(immediateHandle);
};
globalThis.setImmediate = setImmediatePolyfill;
globalThis.clearImmediate = clearImmediatePolyfill;
}
//# sourceMappingURL=setImmediatePolyfill.js.map