rtx 0.1.0

RTx is a zero-cost runtime-abstraction intended for use by Rust libraries to enable the Freedom of Choice between asynchronous runtimes.
1
2
3
4
5
6
use std::future::Future;
use std::pin::Pin;

/// An owned dynamically typed Future for use in cases where you can’t statically
/// type your result or need to add some indirection.
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;