Skip to main content

Module events

Module events 

Source
Expand description

The unified event source (0018 §services): every async producer — terminal, LSP, git, shell, picker, clipboard — lands on ONE channel as a typed AppEvent. The main loop parks on it; workers wake the loop the instant they post. Gone: the 500ms poll latency between a job finishing and the UI noticing.

Forwarder threads move each job channel into the app channel. The headless harness keeps the raw channels (no forwarders) and drives the same per-event handlers through the drains.

Structs§

EventSender

Enums§

AppEvent
One app event. Terminal input is already translated to editor keys by the reader thread.

Constants§

EVENTS_PER_TURN
Fairness limits apply between events; expensive work itself belongs on a worker.
TURN_BUDGET

Functions§

channel