Introduce support for cancellable async calls

This commit is contained in:
sangelovic authored and Stanislav Angelovič committed 2020-04-04 16:30:56 +02:00
1 parent e91bedd4cb
commit 00d0837d98
9 files changed
+174 -34

No files matched your search

+8 -8
View File
@@ -156,15 +156,15 @@ public:
return result;
}
void doOperationClientSideAsync(uint32_t param)
sdbus::PendingAsyncCall doOperationClientSideAsync(uint32_t param)
{
object_.callMethodAsync("doOperation")
.onInterface(INTERFACE_NAME)
.withArguments(param)
.uponReplyInvoke([this](const sdbus::Error* error, uint32_t returnValue)
{
this->onDoOperationReply(returnValue, error);
});
return object_.callMethodAsync("doOperation")
.onInterface(INTERFACE_NAME)
.withArguments(param)
.uponReplyInvoke([this](const sdbus::Error* error, uint32_t returnValue)
{
this->onDoOperationReply(returnValue, error);
});
}
void doErroneousOperationClientSideAsync()