messages 0.3.1

Runtime-agnostic actor library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::future::Future;

pub use async_std::task::JoinHandle;

pub(crate) fn spawn<T>(task: T) -> JoinHandle<T::Output>
where
    T: Future + Send + 'static,
    T::Output: Send + 'static,
{
    async_std::task::spawn(task)
}