* Executes an action when the session becomes idle, retrying if currently working. * * @param action - The async action to execute once idle * @param isActive - Returns whether this operation is still active (not cancelled) * @param isWorking - Returns whether the session is currently working *
( action: () => Promise<void>, isActive: () => boolean, isWorking: () => boolean, isStopped: () => boolean, retryMs: number, cooldownMs: number, setTimer: (timer: NodeJS.Timeout | null) => void, onCooldownDone: () => void )
source not stored for this graph (policy: none)
no test coverage detected