ProcessingService
class¶
Bases: ABC
A base class that defines a common interface for processing calls.
Notes:
- The main goal of this class is to decouple the process of executing calls from the underlying implementation, thereby establishing a template for defining a variety of strategies to manage the execution.
Source code in pyventus/core/processing/processing_service.py
Functions¶
submit
abstractmethod
¶
Submit a callback along with its arguments for execution.
Subclasses must implement this method to define the specific execution strategy.
PARAMETER | DESCRIPTION |
---|---|
callback
|
The callback to be executed.
TYPE:
|
args
|
Positional arguments to be passed to the callback.
TYPE:
|
kwargs
|
Keyword arguments to be passed to the callback.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
None
|
None. |