bibliopixel.util.threads.task_thread module

class bibliopixel.util.threads.task_thread.Task(task=None, event=None)[source]

Bases: object

run(next_task)[source]

Wait for the event, run the task, trigger the next task.

class bibliopixel.util.threads.task_thread.TaskThread(producer_task, consumer_task, daemon=True, **kwds)[source]

Bases: bibliopixel.util.threads.runnable.LoopThread

produce()[source]
run_once()[source]

The target code that is repeatedly executed in the run method