.. _LokAccessOperation: ================== LokAccessOperation ================== **Inherits:** The :ref:`LokAccessOperation ` class executes given operations to access data. Description =========== The :ref:`LokAccessOperation ` class helps with the execution of operations that can manipulate stored data. This class is used by the :ref:`LokAccessExecutor ` class in order to organize and queue different operations in a parallel :ref:`Thread `. Since this class is used with different :ref:`Thread `s, it uses the :ref:`Object.call_deferred ` method when emitting signals, so that the main :ref:`Thread ` can seamlessly connect with these signals. **Version**: 1.0.0 **Author**: Daniel Sousa (github.com/nadjiel _) Property Index ============== .. list-table:: :header-rows: 1 * - Type - Name - Default value * - :ref:`Callable ` - :ref:`_callable ` - ```` Method Index ============ .. list-table:: :header-rows: 1 * - Return type - Signature * - :ref:`Dictionary ` - :ref:`operate `\(\) Signal Descriptions =================== .. _LokAccessOperation_started: started\(\) ----------- The :ref:`started ` signal is emitted when this operation starts with its :ref:`operate ` method being called. .. _LokAccessOperation_finished: finished\(:ref:`Dictionary ` result\) ------------------------------------------------- The :ref:`finished ` signal is emitted when this operations finishes with the end of its :ref:`operate ` method execution. This signal passes a ``result`` :ref:`Dictionary ` with the result of this operation. Property Descriptions ===================== .. _LokAccessOperation__callable: :ref:`Callable ` _callable ------------------------------------ The :ref:`_callable <_callable>` property of this :ref:`LokAccessOperation ` represents a :ref:`Callable ` that is executed in order for this :ref:`LokAccessOperation ` to execute. This :ref:`Callable ` is supposed to return a :ref:`Dictionary ` with the result of this :ref:`LokAccessOperation `. Method Descriptions =================== .. _LokAccessOperation_operate: :ref:`Dictionary ` operate\(\) ------------------------------------------ The :ref:`operate ` is the main point of execution of this :ref:`LokAccessOperation `. It's this method that is responsible for emitting the :ref:`started ` and :ref:`finished ` signals in the given times, which allows this :ref:`LokAccessOperation ` to be handled asynchronously.