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