MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ every()

EventChain & MayaFlux::Kriya::EventChain::every ( double  interval_seconds,
std::function< void()>  action 
)

Convenience method for repeating an action at regular intervals.

Parameters
interval_secondsTime between each execution
actionFunction to execute
Returns
Reference to this EventChain for method chaining

Definition at line 50 of file Chain.cpp.

51{
52 return then(std::move(action), interval_seconds);
53}
EventChain & then(std::function< void()> action, double delay_seconds=0.F)
Adds an event to the chain with a specified delay.
Definition Chain.cpp:19

References then().

+ Here is the call graph for this function: