mirror of
https://github.com/logos-co/logos-protocol.git
synced 2026-08-30 21:41:10 +00:00
feat: plumb CallError through invokeRemoteMethodAsync
This commit is contained in:
@@ -149,6 +149,19 @@ QVariant LogosAPIClient::invokeRemoteMethod(const QString& objectName, const QSt
|
||||
void LogosAPIClient::invokeRemoteMethodAsync(const QString& objectName, const QString& methodName,
|
||||
const QVariantList& args, AsyncResultCallback callback,
|
||||
Timeout timeout)
|
||||
{
|
||||
// Delegate to the CallError-aware overload; legacy callers just drop the
|
||||
// error field. Keeps the handshake-coalescing logic single-sourced.
|
||||
invokeRemoteMethodAsync(objectName, methodName, args,
|
||||
[cb = std::move(callback)](QVariant r, const logos::CallError&) mutable {
|
||||
if (cb) cb(std::move(r));
|
||||
},
|
||||
timeout);
|
||||
}
|
||||
|
||||
void LogosAPIClient::invokeRemoteMethodAsync(const QString& objectName, const QString& methodName,
|
||||
const QVariantList& args, AsyncResultErrorCallback callback,
|
||||
Timeout timeout)
|
||||
{
|
||||
if (!callback) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user