tornadio.flashserver
This module implements customized PeriodicCallback from tornado with
support of the sliding window.
-
class tornadio2.periodic.Callback(callback, callback_time, io_loop)[source]
Custom implementation of the Tornado.Callback with support
of callback timeout delays.
-
__init__(callback, callback_time, io_loop)[source]
Constructor.
- callback
- Callback function
- callback_time
- Callback timeout value (in milliseconds)
- io_loop
- io_loop instance
-
calculate_next_run()[source]
Caltulate next scheduled run
-
start(timeout=None)[source]
Start callbacks
-
stop()[source]
Stop callbacks
-
delay()[source]
Delay callback