Skip to main content

Module spawn

Module spawn 

Source
Expand description

Runtime abstraction layer for cross-platform async execution

Provides platform-specific implementations for spawning tasks and running futures. Supports both native (Tokio) and WASM (wasm-bindgen-futures) targets.

Traits§

AsyncRuntime
Marker trait for runtime implementations (not used as trait object)

Functions§

spawn
Helper function to spawn a task using platform-specific runtime
spawn_local
Helper function to spawn a local task using platform-specific runtime