File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,20 @@ defmodule Node do
74
74
75
75
See http://www.erlang.org/doc/man/erlang.html#disconnect_node-1 for more info.
76
76
"""
77
- @ spec disconnect ( t ) :: boolean | :ginored
77
+ @ spec disconnect ( t ) :: boolean | :ignored
78
78
def disconnect ( node ) do
79
79
:erlang . disconnect_node ( node )
80
80
end
81
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
+
82
91
@ doc """
83
92
Returns the pid of a new process started by the application of `fun`
84
93
on `node`. If `node` does not exist, a useless pid is returned.
You can’t perform that action at this time.
0 commit comments