@@ -73,23 +73,46 @@ defmodule Node do
73
73
Returns the pid of a new process started by the application of `fun`
74
74
on `node`. If `node` does not exist, a useless pid is returned.
75
75
76
- Check http://www.erlang.org/doc/man/erlang.html#spawn_opt-4 for
76
+ Check http://www.erlang.org/doc/man/erlang.html#spawn-2 for
77
77
the list of available options.
78
78
"""
79
- def spawn ( node , fun , opts // [ ] ) do
79
+ def spawn ( node , fun ) do
80
+ :erlang . spawn ( node , fun )
81
+ end
82
+
83
+ @ doc """
84
+ Returns the pid of a new process started by the application of `fun`
85
+ on `node`. If `node` does not exist, a useless pid is returned.
86
+
87
+ Check http://www.erlang.org/doc/man/erlang.html#spawn_opt-3 for
88
+ the list of available options.
89
+ """
90
+ def spawn ( node , fun , opts ) do
80
91
:erlang . spawn_opt ( node , fun , opts )
81
92
end
82
93
83
94
@ doc """
84
95
Returns the pid of a new process started by the application of
85
- `module.function(args)` on `node`. If `node` does not exists, a useless
86
- pid is returned.
96
+ `module.function(args)` on `node`. If `node` does not exists,
97
+ a useless pid is returned.
98
+
99
+ Check http://www.erlang.org/doc/man/erlang.html#spawn-4 for
100
+ the list of available options.
101
+ """
102
+ def spawn ( node , module , fun , args ) do
103
+ :erlang . spawn ( node , module , fun , args )
104
+ end
105
+
106
+ @ doc """
107
+ Returns the pid of a new process started by the application of
108
+ `module.function(args)` on `node`. If `node` does not exists,
109
+ a useless pid is returned.
87
110
88
- Check http://www.erlang.org/doc/man/erlang.html#spawn_opt-4 for
111
+ Check http://www.erlang.org/doc/man/erlang.html#spawn_opt-5 for
89
112
the list of available options.
90
113
"""
91
- def spawn ( node , module , fun , args , opts // [ ] ) do
92
- :erlang . spawn ( node , module , fun , args , opts )
114
+ def spawn ( node , module , fun , args , opts ) do
115
+ :erlang . spawn_opt ( node , module , fun , args , opts )
93
116
end
94
117
95
118
@ doc """
0 commit comments