Skip to main content

spawn_engine

Function spawn_engine 

Source
pub fn spawn_engine(config: EngineConfig, state: StateStore) -> EngineHandle
Expand description

Spawn the engine in a background task (mirrors spawn_engine in the old crates/tui/src/core/engine.rs). Returns the handle that TUI, CLI exec, app-server, and tests all share — one Op-in / EventMsg-out API.