[][src]Trait meio::handlers::TaskEliminated

pub trait TaskEliminated<T: LiteTask>: Actor {
#[must_use]    pub fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        id: IdOf<T>,
        result: Result<T::Output, TaskError>,
        ctx: &'life1 mut Context<Self>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Listens for spawned tasks finished.

Required methods

#[must_use]pub fn handle<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    id: IdOf<T>,
    result: Result<T::Output, TaskError>,
    ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Called when the Task finished.

Loading content...

Implementors

Loading content...