asyncfuture icon indicating copy to clipboard operation
asyncfuture copied to clipboard

Use QFuture like a Promise object

Results 15 asyncfuture issues
Sort by recently updated
recently updated
newest added

I have a test , but got some errors. TaskCenter.h TaskCenter.cpp --------------------------------------------------------------------- ``` #include "asyncfuture.h" #include "automator.h" SnapshotWidget snapshotwidget; QFuture m_subscribeFuture; QFuture m_doWorkFuture; int m_count = 0; TaskCenter::TaskCenter(){} void TaskCenter::realtime_snapshot_update(int...

Now that Qt 6.3 supports whenAll (https://doc-snapshots.qt.io/qt6-6.3/qtfuture.html#whenAll) we should be able to port asyncfuture's backend to use Qt 6.3 API. That's probably performance benefits since Qt QFuture api doesn't use...

Currently, this library offers a combiner which resolves once all the futures added to it have resolved. I don't think there is a 'combiner' which resolves once ANY ONE of...

And how does one communicate that error? Is this what 'cancel' is for? - doesn't sound this way as cancel is the interface of the future not of the promise....

Considering this situation: Display a dialog, and then use `AsyncFuture` to send a network request, and the result will be displayed on the interface when the network request responds. I...

An example of this issue is if two futures being added to Combined(). If future1 finished before future2 has been added, this will complete() the Combined(). Even though in this...

I was trying to load data one by one, like supported in QFuture::resultReadyAt. Here is an example: ``` struct ComplexData{ QString fruit, color; }; using ComplexDataPtr = QSharedPointer; // Simulate...

With Qt 5.14.1, AsyncFuture testcases produce many warnings about using deprecated qt functions. These should be update so AsyncFuture continues to work in the future.

Currently asyncfuture doesn't support watching progress on work thread because the future watcher is always move to the main thread. If the work thread has an eventloop, this should work....