UNPKG

@mtdt.temp/browser-core

Version:
16 lines 714 B
import { getZoneJsOriginalValue } from './getZoneJsOriginalValue'; import { monitor } from './monitor'; import { getGlobalObject } from './getGlobalObject'; export function setTimeout(callback, delay) { return getZoneJsOriginalValue(getGlobalObject(), 'setTimeout')(monitor(callback), delay); } export function clearTimeout(timeoutId) { getZoneJsOriginalValue(getGlobalObject(), 'clearTimeout')(timeoutId); } export function setInterval(callback, delay) { return getZoneJsOriginalValue(getGlobalObject(), 'setInterval')(monitor(callback), delay); } export function clearInterval(timeoutId) { getZoneJsOriginalValue(getGlobalObject(), 'clearInterval')(timeoutId); } //# sourceMappingURL=timer.js.map