Introduce support for cancellable async calls

This commit is contained in:
sangelovic committed 2020-03-29 21:43:20 +02:00
1 parent dc66efbbcb
commit fe6650be0f
9 files changed
+164 -27

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()