the only low level language i've really worked with often is rust so
the only low level language i've really worked with often is rust so
std::vector<uint8_t> Messenger::executeRemoteMethodSync(const std::string object, const std::string method, ArgsConstructor argsConstructor) {
std::promise<std::vector<uint8_t>> promise;
std::future<std::vector<uint8_t>> future = promise.get_future();
executeRemoteMethod(object, method, argsConstructor, [&promise](const std::vector<uint8_t> data) {
promise.set_value(data);
});
return future.get();
}