Macro stakker::after

source ·
macro_rules! after {
    ( $dur:expr, $($x:tt)+ ) => { ... };
}
Expand description

After a delay, perform an actor call or inline code

The syntax of the calls is identical to lazy!, but with a Duration argument first. Returns a FixedTimerKey which can be used to delete the timer if necessary using Core::timer_del. See also at!.

after!(dur, ...args-as-for-lazy-macro...);

Implemented using Core::after, Actor::apply and Actor::apply_prep.