Skip to main content

DelayedTaskExecutor

Trait DelayedTaskExecutor 

Source
pub trait DelayedTaskExecutor<T: Send + Sync + Clone + 'static>: Send + Sync {
    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        task: DelayedTask<T>,
    ) -> Pin<Box<dyn Future<Output = WaeResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

延迟任务执行器 trait

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, task: DelayedTask<T>, ) -> Pin<Box<dyn Future<Output = WaeResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

执行任务

Implementors§