Skip to main content

run_engine_loop_with_transports

Function run_engine_loop_with_transports 

Source
pub async fn run_engine_loop_with_transports(
    shell: ExecutionShell,
    tick_rx: Receiver<Tick>,
    tick_tx: Sender<Tick>,
    config: EngineConfig,
    shutdown_rx: Receiver<()>,
    transports: TransportTable,
)
Expand description

带 transport 路由表的事件泵入口(A1)。

与 run_engine_loop 唯一区别:transports 把 TransportId → NativeTransport 接进泵,使 Effect::Send 真正发到 WS。host 装配时 connect() 各 transport 后填表。

装配 native ports → host 泛型壳 engine::run_engine_loop(单一 pump 核)。