View Source Kino.RPC (Kino v0.12.3)

Functions for working with remote nodes.

Link to this section Summary

Functions

Evaluates the contents given by string on the given node.

Link to this section Functions

Link to this macro

eval_string(node, string, opts \\ [])

View Source (macro)

Evaluates the contents given by string on the given node.

Returns the value returned from evaluation.

The code is analyzed for variable references, they are automatically extracted from the caller binding and passed to the evaluation. This means that the evaluated string actually has closure semantics.

The code is parsed and expanded on the remote node. Also, errors and exists are captured and propagated to the caller.

See Code.eval_string/3 for available opts.