# TaskThreaded

from direct.showbase.TaskThreaded import TaskThreaded

derive from this if you need to do a bunch of CPU-intensive processing and you don't want to hang up the show. Lets you break up the processing over multiple frames

## Inheritance:

TaskThreaded:

## Methods of TaskThreaded:

__init__
_doCallback
_doThreadCallback
destroy
finished
getTimeslice
scheduleCallback
scheduleThread
setTimeslice
taskTimeLeft

__init__ def __init__(self, name, threaded=True, timeslice=None, callback=None) Undocumented function.

_doCallback def _doCallback(self, callback, taskName, task) Undocumented function.

_doThreadCallback def _doThreadCallback(self, thread, taskName, task) Undocumented function.

destroy def destroy(self) Undocumented function.

finished def finished(self) Undocumented function.

getTimeslice def getTimeslice(self) Undocumented function.

scheduleCallback def scheduleCallback(self, callback) Undocumented function.

scheduleThread def scheduleThread(self, thread) Undocumented function.

setTimeslice def setTimeslice(self, timeslice) Undocumented function.

taskTimeLeft def taskTimeLeft(self) returns True if there is time left for the current task callback to run without going over the allotted timeslice