mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-27 14:16:34 +00:00
9 lines
602 B
JavaScript
9 lines
602 B
JavaScript
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
|