sea-streamer-runtime 0.5.0

🌊 SeaStreamer async runtime abstraction
Documentation
1
2
3
4
5
6
7
8
9
10
11
use futures::future::Future;

pub use tokio::task::{spawn_blocking, JoinError, JoinHandle as TaskHandle};

pub fn spawn_task<F, T>(future: F) -> TaskHandle<T>
where
    F: Future<Output = T> + Send + 'static,
    T: Send + 'static,
{
    tokio::task::spawn(future)
}