pub fn spawn(tx: UnboundedSender<InputEvent>) -> ReaderHandleExpand description
Spawn a blocking OS thread that reads crossterm events and forwards them
over tx. Returns a ReaderHandle for lifecycle control (Pause /
Resume / Shutdown). The thread exits when:
- the
ReaderHandleis dropped (Shutdown sent), txis closed (send returns Err),- or a fatal crossterm read error fires.