foxfire-acp 0.1.4

Agent Client Protocol (ACP) client utilities and Aether protocol extensions
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::future::Future;

#[cfg(not(target_arch = "wasm32"))]
pub(crate) fn spawn(future: impl Future<Output = ()> + Send + 'static) {
    tokio::spawn(future);
}

#[cfg(target_arch = "wasm32")]
pub(crate) fn spawn(future: impl Future<Output = ()> + 'static) {
    wasm_bindgen_futures::spawn_local(future);
}