complete pure call

This commit is contained in:
王劲鹏
2021-05-31 16:00:06 +08:00
committed by osborn
parent 9f721aa1c8
commit 4c5cd39320
12 changed files with 66 additions and 68 deletions

View File

@@ -1,17 +1,13 @@
#ifndef ASYNCRESULT_H
#define ASYNCRESULT_H
#include <QJSValue>
#include <QString>
#include "DoricExport.h"
#include "DoricSettableFuture.h"
static QString EMPTY("");
class DORIC_EXPORT DoricAsyncResult {
private:
QString result = EMPTY;
QString result;
public:
std::function<void()> resultCallback;
@@ -26,9 +22,9 @@ public:
bool hasResult();
QJSValue getResult();
QString getResult();
DoricSettableFuture *synchronous();
QString waitUntilResult();
};
#endif // ASYNCRESULT_H