|
seq
4.0.0-pre3
|
ActionInThread ctor. More...
Public Member Functions | |
| def | __call__ (self, resume=False) |
| Executes node action. More... | |
Public Member Functions inherited from lib.nodes.action.Action | |
| def | __attrs_post_init__ (self) |
| setup object. More... | |
| def | make_sequence (self, parent_tpl=None) |
| Not much to do here. More... | |
Public Member Functions inherited from lib.nodes.interface._BaseNode | |
| def | make_sequence (self) |
| does nothing More... | |
| def | make_task (self, node, input_list, resume) |
| Creates the task object that executes the node. More... | |
| def | pause (self) |
| def | resume (self) |
Additional Inherited Members | |
Public Attributes inherited from lib.nodes.action.Action | |
| name | |
| id | |
| description | |
| runtime_flags | |
| in_error | |
| t_start | |
| skip | |
| t_end | |
| result | |
| exception | |
Static Public Attributes inherited from lib.nodes.action.Action | |
| f = attr.ib(default=None, repr=False) | |
| parent_tpl = attr.ib(default=None, repr=False) | |
| current_node = cv.ContextVar("current_node", default=None) | |
Static Public Attributes inherited from lib.nodes.interface._BaseNode | |
| id = attr.ib(default=None, kw_only=True) | |
| name = attr.ib(default=None, kw_only=True) | |
| runtime_flags = attr.ib(default=0, kw_only=True) | |
| deps = attr.ib(default=attr.Factory(list), repr=False, kw_only=True, init=False) | |
| description = attr.ib(default="", kw_only=True) | |
| exception = attr.ib(init=False, default=None, repr=False) | |
| can_skip = attr.ib(default=True, init=False) | |
| hide = attr.ib(default=False, init=False) | |
| t_start = attr.ib(init=False, default=None, repr=False) | |
| t_end = attr.ib(init=False, default=None, repr=False) | |
| running_checkpoint | |
| serial_number = attr.ib(init=False) | |
Properties inherited from lib.nodes.action.Action | |
| context = property | |
| Get context from the running Sequence. More... | |
| state = property | |
| full_state = property | |
Properties inherited from lib.nodes.interface._BaseNode | |
| result = property | |
| Node's result. More... | |
| end_node = property | |
| start_node = property | |
| state = property | |
| Gets the node state. More... | |
| full_state = property | |
| Gets the node state. More... | |
| in_error = property | |
| skip = property | |
ActionInThread ctor.
ActionInThread nodes executes python callables (functions or methods) in a Sequencer script.
| f | The callable the node will execute |
| id | Unique id. If not provided an unique identifier is assigned. |
| name | Node name. If not provided a name is assigned. |
| TypeError | is f is not a python method or function. |
| def lib.nodes.action.ActionInThread.__call__ | ( | self, | |
resume = False |
|||
| ) |
Executes node action.
The action is a normal function, a special task is created in order to execute the action in a different thread. In any case the context parameter is passed to the action and its result saved.
Reimplemented from lib.nodes.action.Action.