template<typename Fsm>
class zth::FsmGuard< Fsm >
A guard is evaluated, and when true, the corresponding transition is taken.
Use one of the guards in zth::guards
, like zth::guards::always()
, or define your own. A guard is a function that gets the current Fsm reference as argument and should return a zth::TimeInterval. When the interval has passed (zero or negative duration), the guard is assumed to be taken. A positive duration indicates how much time it will probably take for the guard to become valid, which can be used to suspend the fiber.
Definition at line 175 of file fsm.h.