This interface defines a general async task callback schema.
More...
#include <async_callback.h>
|
virtual void | OnSuccess (const std::string &result)=0 |
| This is called when the async task is executed successfully.
|
|
virtual void | OnFailure (const TcrCode &code, const std::string &msg)=0 |
| This is called when the async task is executed failed.
|
|
This interface defines a general async task callback schema.
◆ OnFailure()
virtual void OnFailure |
( |
const TcrCode & |
code, |
|
|
const std::string & |
msg |
|
) |
| |
|
pure virtual |
This is called when the async task is executed failed.
- Parameters
-
code | The error code of the task execution. |
msg | The error message of the task execution. |
◆ OnSuccess()
virtual void OnSuccess |
( |
const std::string & |
result | ) |
|
|
pure virtual |
This is called when the async task is executed successfully.
- Parameters
-
result | The result of the task execution. |
The documentation for this class was generated from the following file: