history

history.flush

flush(): void

Commit the current pending command group immediately, bypassing the auto-commit timer.

Useful when you need to force a history boundary before the auto-commit window expires (e.g. before starting a new logical operation without opening a full transaction). No-op if there are no pending commands. Emits "history:changed" when a pending group exists; no-op if the pending queue is empty.

Returns: void