UNPKG

audio-context-timers

Version:

A replacement for setInterval() and setTimeout() which works in unfocused windows.

12 lines 338 B
export const createCallFunction = (functions, type) => (id) => { if (functions.has(id)) { const func = functions.get(id); if (func !== undefined) { func(); if (type === 'timeout') { functions.delete(id); } } } }; //# sourceMappingURL=call-function.js.map