Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ ice_invokeAsync() [4/4]

std::function< void()> Ice::ObjectPrx::ice_invokeAsync ( std::string_view operation,
Ice::OperationMode mode,
std::pair< const std::byte *, const std::byte * > inParams,
std::function< void(bool, std::pair< const std::byte *, const std::byte * >)> response,
std::function< void(std::exception_ptr)> ex = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Invokes an operation asynchronously.

Parameters
operationThe name of the operation to invoke.
modeThe operation mode (normal or idempotent).
inParamsAn encapsulation containing the encoded in-parameters for the operation.
responseThe response callback. It accepts:
  • returnValue true if the operation completed successfully, false if it completed with a user exception.
  • outParams An encapsulation containing the encoded result.
exThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.