betfsm.Timeout_Condition

Bases: Condition

Triggers a condition after a gtiven time, can repeat itself.

__init__(event, sec, repeat=1, consume=True)

Parameters:
  • event (str) –

    name of the event to send out

  • sec (float) –

    send the event after sec seconds.

  • repeat (int, default: 1 ) –

    the number of times to repeat this. Negative to never stop.

  • consume

    whether to consume the event. Can be useful not to consume if you just want to check whether you are before or after a given time.