summaryrefslogtreecommitdiffstats
path: root/common/resourceaccess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r--common/resourceaccess.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp
index fc63e7c..c806478 100644
--- a/common/resourceaccess.cpp
+++ b/common/resourceaccess.cpp
@@ -154,6 +154,13 @@ Async::Job<void> ResourceAccess::sendCommand(int commandId)
154 }); 154 });
155} 155}
156 156
157/*
158 * TODO JOBAPI: This is a workaround to be able to return a job below to
159 * may or may not already be finished when the job is started. The job API should provide a mechanism
160 * for this. Essentially we need a way to set a job finished externally (we use the finisher as handle for that).
161 * If the job is then started the continuation should immediately be executed if the job finished already, and otherwise
162 * just wait until the work is done, and then execute the continuation as usual.
163 */
157struct JobFinisher { 164struct JobFinisher {
158 bool finished; 165 bool finished;
159 std::function<void(int error, const QString &errorMessage)> callback; 166 std::function<void(int error, const QString &errorMessage)> callback;