@@ -217,7 +217,7 @@ namespace sdbus {
217217 }
218218
219219 template <typename _Function>
220- PendingAsyncCall SetAsync (const InterfaceName& interfaceName, const PropertyName& propertyName, const sdbus::Variant& value, _Function&& callback, return_slot_t )
220+ [[nodiscard]] Slot SetAsync (const InterfaceName& interfaceName, const PropertyName& propertyName, const sdbus::Variant& value, _Function&& callback, return_slot_t )
221221 {
222222 return m_proxy.setPropertyAsync (propertyName).onInterface (interfaceName).toValue (value).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
223223 }
@@ -229,7 +229,7 @@ namespace sdbus {
229229 }
230230
231231 template <typename _Function>
232- PendingAsyncCall SetAsync (std::string_view interfaceName, std::string_view propertyName, const sdbus::Variant& value, _Function&& callback, return_slot_t )
232+ [[nodiscard]] Slot SetAsync (std::string_view interfaceName, std::string_view propertyName, const sdbus::Variant& value, _Function&& callback, return_slot_t )
233233 {
234234 return m_proxy.setPropertyAsync (propertyName).onInterface (interfaceName).toValue (value).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
235235 }
@@ -261,7 +261,7 @@ namespace sdbus {
261261 }
262262
263263 template <typename _Function>
264- PendingAsyncCall GetAllAsync (const InterfaceName& interfaceName, _Function&& callback, return_slot_t )
264+ [[nodiscard]] Slot GetAllAsync (const InterfaceName& interfaceName, _Function&& callback, return_slot_t )
265265 {
266266 return m_proxy.getAllPropertiesAsync ().onInterface (interfaceName).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
267267 }
@@ -273,7 +273,7 @@ namespace sdbus {
273273 }
274274
275275 template <typename _Function>
276- PendingAsyncCall GetAllAsync (std::string_view interfaceName, _Function&& callback, return_slot_t )
276+ [[nodiscard]] Slot GetAllAsync (std::string_view interfaceName, _Function&& callback, return_slot_t )
277277 {
278278 return m_proxy.getAllPropertiesAsync ().onInterface (interfaceName).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
279279 }
0 commit comments