MCPcopy Create free account
hub / github.com/apache/qpid-proton / Recurring

Class Recurring

python/examples/recurring_timer_tornado.py:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25class Recurring(Handler):
26 def __init__(self, period):
27 self.period = period
28
29 def on_reactor_init(self, event):
30 self.container = event.container
31 self.container.schedule(self.period, self)
32
33 def on_timer_task(self, event):
34 print("Tick...")
35 self.container.schedule(self.period, self)
36
37
38try:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected