Skip to main content

DeadlineReaction

Type Alias DeadlineReaction 

Source
pub type DeadlineReaction<B> = fn(&mut B) -> Become;
Expand description

Infallible reaction to one accepted deadline.

ⓘ
fn fallible(_: &mut App) -> Result<behavior::Become, behavior::Never> {
    Ok(behavior::Step::Continue)
}
let _ = behavior_actors::Deadline::new(App, behavior_actors::TimerId(1), None, fallible);