Skip to main content

Module startup_events

Module startup_events 

Source
Expand description

Startup event bus: typed events emitted by each launcher startup stage and consumed by the native splash screen renderer.

Transport: std::sync::mpsc::channel (unbounded). Sender::send never blocks and is safe to call from async tokio code. The splash thread drains the receiver with try_recv every animation frame (~16 ms).

On non-Windows platforms (or when the splash is disabled), the receiver is dropped immediately and subsequent sends silently return Err — callers use let _ = self.tx.send(...) so nothing blows up.

Structs§

StartupEventSink
Clone-able sender half — one per startup stage, cloned as needed.

Enums§

StartupEvent
StartupStatus