exec_while¶
- pypagate.source.exec_while(form, source)¶
Use as a decorator: Every time source.listen(…) is called and the formula evaluates to True, execute this function.
- Parameters:
form – The formula to check if it evaluates to True.
source – The source that triggers listen(…).