IOTConnect-Web/node_modules/worker-timers/build/es2019/module.js

9 lines
602 B
JavaScript
Raw Permalink Normal View History

2024-05-09 01:49:52 +00:00
import { load } from 'worker-timers-broker';
import { createLoadOrReturnBroker } from './factories/load-or-return-broker';
import { worker } from './worker/worker';
const loadOrReturnBroker = createLoadOrReturnBroker(load, worker);
export const clearInterval = (timerId) => loadOrReturnBroker().clearInterval(timerId);
export const clearTimeout = (timerId) => loadOrReturnBroker().clearTimeout(timerId);
export const setInterval = (...args) => loadOrReturnBroker().setInterval(...args);
export const setTimeout = (...args) => loadOrReturnBroker().setTimeout(...args);
//# sourceMappingURL=module.js.map