We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bcc4be commit ddc9733Copy full SHA for ddc9733
lib/elixir/lib/node.ex
@@ -79,6 +79,15 @@ defmodule Node do
79
:erlang.disconnect_node(node)
80
end
81
82
+ @doc """
83
+ Establishes a connection to Node. Returns true if successful, false if not, and ignored if the local node is not alive.
84
+ See http://erlang.org/doc/man/net_kernel.html#connect_node-1 for more info.
85
+ """
86
+ @spec connect(t) :: boolean | :ignored
87
+ def connect(node) do
88
+ :net_kernel.connect_node(node)
89
+ end
90
+
91
@doc """
92
Returns the pid of a new process started by the application of `fun`
93
on `node`. If `node` does not exist, a useless pid is returned.
0 commit comments