partisan_rpc (partisan v5.0.2)

View Source

Summary

Types

error_reason/0

-type error_reason() :: timeout | any().

Functions

call(Node, Module, Function, Arguments)

-spec call(Node :: node(), Module :: module(), Function :: atom(), Arguments :: [any()]) ->
              Reply :: any() | {badrpc, error_reason()}.

call(Node, Module, Function, Arguments, Timeout)

-spec call(Node :: node(),
           Module :: module(),
           Function :: atom(),
           Arguments :: [any()],
           Timeout :: timeout() | partisan_peer_service_manager:forward_opts()) ->
              Reply :: any() | {badrpc, error_reason()}.

prepare_opts(L)

-spec prepare_opts(list() | map()) -> map().