Whether a timeout is currently scheduled and has not yet fired or been cleared.
true if a timeout is pending.
Clear the timeout on disposal, preventing leaked timers.
Cancel the current timeout if one is active.
Schedule a callback after ms milliseconds, replacing any existing timeout.
The function to invoke when the timeout fires.
The delay in milliseconds before invoking the callback.
Disposable wrapper around
setTimeoutfor internal background bookkeeping (e.g. the auto-sync cadence). Auto-clears the previous timeout when rescheduled and unrefs the underlying handle so a scheduled callback never keeps the Node event loop alive on its own — callers are still notified on the regular loop, but a script that has nothing left to do can exit immediately.