Inheritance |
|
A handle to a task run on the main thread, by calling pdg.SchedulerBase.runOnMainThread.
Methods ¶
wait()
→ object
or None
Waits for the function running on the main thread to complete, and returns the result of the function.
If the function fails, this method will raise an exception with the errors that occured during execution of the function.
errors
→ str
Property
If the task has completed and encountered a Python exception, this property holds the error message.
result
→ object
or None
Property
If the task has completed without errors, this property holds the result value from the function. This is the same value returned by the wait
method on this instance, and by pdg.SchedulerBase.runOnMainThread when called with wait=True
.