direct.showbase.Job

from direct.showbase.Job import Job, TestJob, addTestJob

Inheritance diagram

digraph inheritance2a18a512c8 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DirectObject" [URL="direct.showbase.DirectObject.html#direct.showbase.DirectObject.DirectObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="This is the class that all Direct/SAL classes should inherit from"]; "Job" [URL="direct.showbase.Job.html#direct.showbase.Job.Job",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Base class for cpu-intensive or non-time-critical operations that"]; "DirectObject" -> "Job" [arrowsize=0.75,style=""]; "TestJob" [URL="direct.showbase.Job.html#direct.showbase.Job.TestJob",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "Job" -> "TestJob" [arrowsize=0.75,style=""]; }
class Job(name)[source]

Bases: DirectObject

Base class for cpu-intensive or non-time-critical operations that are run through the JobManager.

To use, subclass and override the run() method.

Continue = None

yield None is acceptable in place of yield Job.Continue

Done = <object object>

Yielded from the run() generator method when the job is done.

Priorities = <direct.showbase.PythonUtil.ScratchPad object>
Sleep = <object object>

Yield any remaining time for this job until next frame.

class TestJob[source]

Bases: Job