Schedules threaded tasks.
More...
Schedules threaded tasks.
§ __init__()
def Scheduler.Scheduler.__init__ |
( |
|
self | ) |
|
Initializes the Scheduler object
§ addTask()
def Scheduler.Scheduler.addTask |
( |
|
self, |
|
|
|
name, |
|
|
|
callback, |
|
|
|
interval = 0.1 , |
|
|
|
stopped = False |
|
) |
| |
add a new task
@param name
@param callback
@param interval
@param stopped
§ GetInstance()
def Scheduler.Scheduler.GetInstance |
( |
| ) |
|
|
static |
returns a shared instance of the Scheduler object
§ isRunning()
def Scheduler.Scheduler.isRunning |
( |
|
self, |
|
|
|
name |
|
) |
| |
checks if a task is running
@param name
@return bool
§ listTasks()
def Scheduler.Scheduler.listTasks |
( |
|
self | ) |
|
§ removeTask()
def Scheduler.Scheduler.removeTask |
( |
|
self, |
|
|
|
name |
|
) |
| |
remove a task
@param name
§ startTask()
def Scheduler.Scheduler.startTask |
( |
|
self, |
|
|
|
name |
|
) |
| |
§ stopTask()
def Scheduler.Scheduler.stopTask |
( |
|
self, |
|
|
|
name |
|
) |
| |
The documentation for this class was generated from the following file: