summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/Completion.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/client/Completion.h')
-rw-r--r--cpp/src/qpid/client/Completion.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/Completion.h b/cpp/src/qpid/client/Completion.h
index 19d5b31777..22cc70607a 100644
--- a/cpp/src/qpid/client/Completion.h
+++ b/cpp/src/qpid/client/Completion.h
@@ -29,6 +29,11 @@
namespace qpid {
namespace client {
+/**
+ * Returned by asynchronous commands that do not return any result.
+ * You can use this to wait for an individual command to complete.
+ * \clientapi
+ */
class Completion
{
protected:
@@ -40,6 +45,7 @@ public:
Completion(Future f, shared_ptr<SessionImpl> s) : future(f), session(s) {}
+ /** Wait for the command to complete */
void wait()
{
future.wait(*session);