(invocation)
| 300 | } |
| 301 | |
| 302 | function cancelInvocation(invocation) { |
| 303 | const idx = invocations.indexOf(invocation); |
| 304 | if (idx > -1) { |
| 305 | invocations.splice(idx, 1); |
| 306 | if (invocation.timerID !== null) { |
| 307 | lt.clearTimeout(invocation.timerID); |
| 308 | } |
| 309 | |
| 310 | if (currentInvocation === invocation) { |
| 311 | currentInvocation = null; |
| 312 | } |
| 313 | |
| 314 | invocation.job.emit('canceled', invocation.fireDate); |
| 315 | prepareNextInvocation(); |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | /* Recurrence scheduler */ |
| 320 | function scheduleNextRecurrence(rule, job, prevDate, endDate) { |
no test coverage detected
searching dependent graphs…