Skip to content

keepBeating

keepBeating(heartbeat, now?, everyMs?, log?): () => void

Defined in: ../cli/watcher.ts:266

Beats now, and again every everyMs until the returned function is called: a command can run for longer than ALIVE_FOR_MS, and the freehand script must not take over while it does. A beat that fails (the inbox folder gone for a moment) is logged, not thrown: it must never stop the work.

Heartbeat | null | undefined

number = ...

number = ALIVE_EVERY_MS

(line) => void

() => void