()
| 156 | }; |
| 157 | |
| 158 | const run = async (): Promise<void> => { |
| 159 | /*! istanbul ignore else */ |
| 160 | if (!mapGet(scheduleRunning, scheduleId)) { |
| 161 | mapSet(scheduleRunning, scheduleId, 1); |
| 162 | while ( |
| 163 | !isUndefined( |
| 164 | (action = arrayShift( |
| 165 | mapGet(scheduleActions, scheduleId) as Action[], |
| 166 | )), |
| 167 | ) |
| 168 | ) { |
| 169 | await tryCatch(action, onIgnoredError); |
| 170 | } |
| 171 | mapSet(scheduleRunning, scheduleId, 0); |
| 172 | } |
| 173 | }; |
| 174 | |
| 175 | const setContentOrChanges = ( |
| 176 | contentOrChanges: |
no test coverage detected