PythonTask¶
-
class PythonTask¶
Bases:
AsyncTaskThis class exists to allow association of a Python function or coroutine with the
AsyncTaskManager.Inheritance diagram
digraph inheritance572f9f9fdb { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AsyncFuture" [URL="acron.core.AsyncFuture.html#acron.core.AsyncFuture",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "AsyncFuture" [arrowsize=0.75,style=""]; "AsyncTask" [URL="acron.core.AsyncTask.html#acron.core.AsyncTask",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AsyncFuture" -> "AsyncTask" [arrowsize=0.75,style=""]; "Namable" -> "AsyncTask" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "PythonTask" [URL="acron.core.PythonTask.html#acron.core.PythonTask",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AsyncTask" -> "PythonTask" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }- PythonTask.__clear__()¶
- PythonTask.__delattr__()¶
- PythonTask.__getattribute__()¶
- PythonTask.__init__()¶
- PythonTask.__setattr__()¶
- PythonTask.__traverse__()¶
- PythonTask.get_args()¶
- static PythonTask.get_class_type()¶
- PythonTask.get_function()¶
Returns the function that is called when the task runs.
- PythonTask.get_owner()¶
Returns the “owner” object. See
set_owner().
- PythonTask.get_upon_death()¶
Returns the function that is called when the task finishes.
- static PythonTask.operator_delete()¶
- static PythonTask.operator_delete()¶
- static PythonTask.operator_new()¶
- static PythonTask.operator_new()¶
- PythonTask.set_args()¶
- PythonTask.set_function()¶
- PythonTask.set_owner()¶
- PythonTask.set_result()¶
Sets the “result” of this task. This is the value returned from an “await” expression on this task. This can only be called while the task is still alive.
- PythonTask.set_upon_death()¶
- static PythonTask.validate_ptr()¶