pub fn spawn(fut: impl PlatformSendFuture<Output = ()> + 'static)Expand description
Runs a future independently, in a platform-specific way.
- Uses tokio and requires
Sendon native platforms. - Uses wasm-bindgen-futures on WASM and does not require
Send.
Note: This function may spawn it’s own runtime if it can’t find an existing one. Currently, Makepad doesn’t expose the entry point in certain platforms (like Android), making harder to configure a runtime manually.