TimerCallback Class
Class for timer callback.
Ensures the callback is called continuously w/interval until stop is called.
Initialize timer callback.
Constructor
TimerCallback(interval=1, callback=None, *args, **kwargs)
Parameters
Name | Description |
---|---|
interval
|
callback interval Default value: 1
|
callback
|
function to be called Default value: None
|
args
Required
|
args |
kwargs
Required
|
kwargs |
Methods
start |
Start the timer for callback. |
stop |
Stop the timer. |
start
Start the timer for callback.
start()
stop
Stop the timer.
stop()