split project with app & doric module
This commit is contained in:
19
doric-Qt/example/doric/async/DoricSettableFuture.h
Normal file
19
doric-Qt/example/doric/async/DoricSettableFuture.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef SETTABLE_FUTURE_H
|
||||
#define SETTABLE_FUTURE_H
|
||||
|
||||
#include <QJSValue>
|
||||
|
||||
#include "utils/DoricCountDownLatch.h"
|
||||
|
||||
class DoricSettableFuture {
|
||||
private:
|
||||
QJSValue mResult;
|
||||
DoricCountDownLatch *mReadyLatch = new DoricCountDownLatch();
|
||||
|
||||
public:
|
||||
void set(QJSValue result);
|
||||
|
||||
QJSValue get();
|
||||
};
|
||||
|
||||
#endif // SETTABLE_FUTURE_H
|
||||
Reference in New Issue
Block a user