pi_futures 0.1.0

feature select
Documentation
1
2
3
4
5
6
use std::{pin::Pin, future::Future};

#[cfg(all(not(feature = "local"), not(target_arch = "wasm32")))]
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
#[cfg(any(feature = "local", target_arch = "wasm32"))]
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;