(fn: () => void, ms: number)
| 109 | const timers = new Set<ReturnType<typeof setTimeout>>(); |
| 110 | let isBusy = false; |
| 111 | const later = (fn: () => void, ms: number) => { |
| 112 | const id = setTimeout(() => { |
| 113 | timers.delete(id); |
| 114 | fn(); |
| 115 | }, ms); |
| 116 | timers.add(id); |
| 117 | }; |
| 118 | const play = (name: PatchyIdleActionName) => { |
| 119 | if (document.hidden) { |
| 120 | return; |
no outgoing calls
no test coverage detected