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

node_rpc(name, mod, func, args, callback)


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

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


  • name The distributed name
  • 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.


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