()
| 497 | enablePoll.unref?.() |
| 498 | }, |
| 499 | stop() { |
| 500 | stopped = true |
| 501 | if (enablePoll) { |
| 502 | clearInterval(enablePoll) |
| 503 | enablePoll = null |
| 504 | } |
| 505 | if (checkTimer) { |
| 506 | clearInterval(checkTimer) |
| 507 | checkTimer = null |
| 508 | } |
| 509 | if (lockProbeTimer) { |
| 510 | clearInterval(lockProbeTimer) |
| 511 | lockProbeTimer = null |
| 512 | } |
| 513 | void watcher?.close() |
| 514 | watcher = null |
| 515 | if (isOwner) { |
| 516 | isOwner = false |
| 517 | void releaseSchedulerLock(lockOpts) |
| 518 | } |
| 519 | }, |
| 520 | getNextFireTime() { |
| 521 | // nextFireAt uses Infinity for "never" (in-flight one-shots, bad cron |
| 522 | // strings). Filter those out so callers can distinguish "soon" from |
nothing calls this directly
no test coverage detected