Scheduler

class xdm.scheduler.Scheduler

Simple manager for recurring tasks

addTask(action, loopdelay, initdelay=0, name=None, description='')

add a task

Params:

action
a function reference
loopdelay
delay between calls in seconds
initdelay
initial delay in seconds (default = 0)
name
name (default = None). will default to action.__name__
description
description (default = “”)
startAllTasks()

Start all task threads

stopAllTasks()

Stop all task threads