Goal
Execute scheduled functions
Discussion
Ideas
1. Decorator
fromdamimportsend, timer@timer(ms=20)asyncdefhello():
send("a-topic", {"name": "jon"}2. Add them in a list
This would follow a similar approach to routes
fromdamimportTimer, Appfrom .myappimporthellotimers= [
Timer(hello, ms=20)
]
App(timers=timers)
Goal
Execute scheduled functions
Discussion
Ideas
1. Decorator
2. Add them in a list
This would follow a similar approach to
routes