pub fn spawn_dyn<P>(&self, params: P, future: Pin<Box<dyn Future<Output=()> + 'futures>>) -> Option<IdNum>
        where P: Into<SpawnParams>{
        let this = unwrap_weak!(self,None);
        let dynamic = DynamicFuture::new(future, this.clone_registry(), params.into());
        this.register(dynamic).and_then(|v|Some(IdNum::from_usize(v)))
    }
/// Create new task from boxed future and obtain its id.
///
/// # Arguments
/// * `params` - Task creation parameters. Using default will spawn runnable task without name.
/// * `future` - Boxed future you want to schedule.
///
/// Allocates new task inside associated [`Wheel`](struct.Wheel.html). You can specify creation
/// parameters of this task. Returns identifier of newly allocated task or None if this
/// handle is [`invalid`](#method.is_valid).
Create new task from boxed future and obtain its id.
Create new task from boxed future and obtain its id .
pub fn spawn_dyn<P>(&self, params: P, future: Pin<Box<dyn Future<Output=()> + 'futures>>) -> Option<IdNum>
        where P: Into<SpawnParams>{
        let this = unwrap_weak!(self,None);
        let dynamic = DynamicFuture::new(future, this.clone_registry(), params.into());
        this.register(dynamic).and_then(|v|Some(IdNum::from_usize(v)))
    }
pub fn spawn_dyn < P > ( & self , params : P , future : Pin < Box < dyn Future < Output = ( ) > + ' futures > > ) -> Option < IdNum > where P : Into < SpawnParams > { let this = unwrap_weak ! ( self None ) ; let dynamic = DynamicFuture :: new ( future , this . clone_registry ( ) , params . into ( ) ) ; this . register ( dynamic ) . and_then ( | v | Some ( IdNum :: from_usize ( v ) ) ) }
Create new task from boxed future and obtain its id.
Create new task from boxed future and obtain its id .
&self
params
P
future
Pin<Box<dyn Future<Output=()> + 'futures>>
&self
params
P
future
Pin<Box<dyn Future<Output=()> + 'futures>>