mobc 0.5.12

A generic connection pool with async/await support
Documentation
use std::future::Future;

/// Spawns a new asynchronous task.
pub fn spawn<T>(task: T)
where
    T: Future + Send + 'static,
    T::Output: Send + 'static,
{
    spawn::spawn(task);
}

#[cfg(all(
    feature = "tokio",
    not(any(feature = "tokio-02-alpha6-global", feature = "async-std"))
))]
mod spawn {
    pub use tokio::spawn;
}

#[cfg(all(feature = "tokio-02-alpha6-global", not(feature = "async-std")))]
mod spawn {
    pub use tokio_executor::spawn;
}

#[cfg(all(feature = "async-std", not(feature = "tokio-02-alpha6-global")))]
mod spawn {
    pub use async_std::task::spawn;
}