Function spawn

Source
pub async fn spawn(
    command: Command,
    event_handler: impl RuntimeHandler + Send + Sync + 'static,
) -> Result<impl RuntimeService + RuntimeControl + Clone, Error>