1
2
3
4
5
6
7
8
use crate::futures;

/// Execute a future without blocking the current call. The given future is polled once initially
/// to kickstart the async calls.
#[inline(always)]
pub fn spawn<F: 'static + std::future::Future<Output = ()>>(future: F) {
    futures::spawn(future)
}