direct.task.MiniTask

from direct.task.MiniTask import MiniTask, MiniTaskManager

This module implements a minimum task manager. It is similar in principle to the full-featured task manager implemented in Task.py, but it has a sharply reduced feature set–completely bare-bones, in fact–and it is designed to be a pure-python implementation that does not require any C++ Panda support, so that it can be loaded before Panda has been fully downloaded.

Inheritance diagram

Inheritance diagram of direct.task.MiniTask

class MiniTask(callback)[source]

Bases: object

__init__(callback)[source]
cont = 1
done = 0
name: str
class MiniTaskManager[source]

Bases: object

__init__()[source]
add(task, name)[source]
remove(task)[source]
run()[source]
step()[source]
stop()[source]