macula_rpc_executor (macula v0.20.5)
View SourceRPC call execution with timeout handling. Executes local handlers and remote calls via QUIC.
Summary
Functions
Execute local handler with timeout.
Execute remote call via QUIC with timeout.
Generate unique call ID (16-byte UUID).
Types
-type address() :: macula_rpc_dht:address().
-type handler_fn() :: macula_rpc_registry:handler_fn().
-type provider_info() :: macula_rpc_dht:provider_info().
Functions
-spec execute_local(handler_fn(), map(), pos_integer()) -> {ok, term()} | {error, term()}.
Execute local handler with timeout.
-spec execute_remote(binary(), map(), provider_info(), send_fun(), pos_integer()) -> {ok, term()} | {error, term()}.
Execute remote call via QUIC with timeout.
-spec generate_call_id() -> binary().
Generate unique call ID (16-byte UUID).