Distribunator.Distributed.node_rpc

You're seeing just the macro node_rpc, go back to Distribunator.Distributed module for more information.
Link to this macro

node_rpc(mod, func, args, callback)

(macro)

Specs

node_rpc(atom(), atom(), list(), function() | nil) :: {:error, any()} | any()

Perform an :rpc.call/4 on the first node having the current module registered on it.

Parameters

  • mod The module atom to call the function on
  • func The function atom to call
  • args The argument list to function
  • callback The callback to call during rpc invocation after the target function returns but before the rpc call returns. Can be nil.

Returns

  • {:badrpc, reason} RPC failed, for reason
  • {:error, "no node"} There were no nodes with name registered
  • any The result of apply(mod, func, args)