MayaFlux 0.3.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 51 of file Chain.cpp.

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

References then().

+ Here is the call graph for this function: