diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-02-02 02:01:45 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-02-02 02:01:45 +0100 |
commit | d10cbf7478cd2edfd44c162c1924109422584e22 (patch) | |
tree | 85cf496ef99ee189422ae5ecccac55c489c3c835 /common/clientapi.h | |
parent | aa449c82dc3a5505b8a63843b83aed0f5dab8ed1 (diff) | |
download | sink-d10cbf7478cd2edfd44c162c1924109422584e22.tar.gz sink-d10cbf7478cd2edfd44c162c1924109422584e22.zip |
Added JOBAPI todo's.
Work for dvratil.
Diffstat (limited to 'common/clientapi.h')
-rw-r--r-- | common/clientapi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/clientapi.h b/common/clientapi.h index 6b41116..c1404da 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -421,7 +421,7 @@ public: | |||
421 | //We have to bind an instance to the function callback. Since we use a shared pointer this keeps the result provider instance (and thus also the emitter) alive. | 421 | //We have to bind an instance to the function callback. Since we use a shared pointer this keeps the result provider instance (and thus also the emitter) alive. |
422 | std::function<void(const typename DomainType::Ptr &)> addCallback = std::bind(&ResultProvider<typename DomainType::Ptr>::add, resultSet, std::placeholders::_1); | 422 | std::function<void(const typename DomainType::Ptr &)> addCallback = std::bind(&ResultProvider<typename DomainType::Ptr>::add, resultSet, std::placeholders::_1); |
423 | //We copy the facade pointer to keep it alive | 423 | //We copy the facade pointer to keep it alive |
424 | //TODO: we should be able to just do, job = job.then(facade->load(..)) | 424 | //TODO JOBAPI: we should be able to just do, job = job.then(facade->load(..)) |
425 | job = job.then<void>([facade, query, addCallback](Async::Future<void> &future) { | 425 | job = job.then<void>([facade, query, addCallback](Async::Future<void> &future) { |
426 | Async::Job<void> j = facade->load(query, addCallback); | 426 | Async::Job<void> j = facade->load(query, addCallback); |
427 | j.then<void>([&future, facade](Async::Future<void> &f) { | 427 | j.then<void>([&future, facade](Async::Future<void> &f) { |