add custom callback for async result
This commit is contained in:
parent
7443e5c1c9
commit
15d3a1cbf7
@ -1,6 +1,8 @@
|
||||
#ifndef CUSTOM_CALLBACK_H
|
||||
#define CUSTOM_CALLBACK_H
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#include "async/callback.h"
|
||||
|
||||
template <class R>
|
||||
@ -8,11 +10,11 @@ class CustomCallback : public Callback<R> {
|
||||
|
||||
public:
|
||||
void onResult(R result) override {
|
||||
|
||||
qDebug() << result;
|
||||
}
|
||||
|
||||
void onError(QException exception) override {
|
||||
|
||||
qDebug() << exception.what();
|
||||
}
|
||||
|
||||
void onFinish() override {
|
||||
|
Reference in New Issue
Block a user