pub fn spawn<F>(f: F)
where
    F: futures::Future<Output = ()> + 'static,
{
    if !System::is_set() {
        panic!("System is not running");
    }

    Arbiter::spawn(f);
}
/// Spawns a future on the current arbiter.
///
/// # Panics
///
/// This function panics if actix system is not running.
Spawns a future on the current arbiter.
Spawns a future on the current arbiter .
pub fn spawn<F>(f: F)
where
    F: futures::Future<Output = ()> + 'static,
{
    if !System::is_set() {
        panic!("System is not running");
    }
    Arbiter::spawn(f);
}
pub fn spawn < F > ( f : F ) where F : futures :: Future < Output = ( ) > + ' static , { if ! System :: is_set ( ) { panic ! ( " " ) ; } Arbiter :: spawn ( f ) ; }
Spawns a future on the current arbiter.
Spawns a future on the current arbiter .
f
F
panics
This function panics if actix system is not running.
This function panics if actix system is not running .