(cron: string, fromMs: number)
| 318 | * Returns null if invalid or no match in the next 366 days. |
| 319 | */ |
| 320 | export function nextCronRunMs(cron: string, fromMs: number): number | null { |
| 321 | const fields = parseCronExpression(cron) |
| 322 | if (!fields) return null |
| 323 | const next = computeNextCronRun(fields, new Date(fromMs)) |
| 324 | return next ? next.getTime() : null |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * Cron scheduler tuning knobs. Sourced at runtime from the |
no test coverage detected