Skip to main content

spawn

Function spawn 

Source
pub fn spawn(
    config: EngineConfig,
    sink: impl Fn(Event) + Send + Sync + 'static,
) -> Engine
Expand description

Starts the engine thread and returns its handle. Nothing is opened until the page sends ready.

ยงPanics

Panics if the thread cannot be started, or the sensorViz library cannot make a session (built from another version of its header, or out of memory).