1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
[;1m spawn(Fun)[0m
Returns the process identifier of a new process started by the
application of [;;4mFun[0m to the empty list [;;4m[][0m. Otherwise works like [;;4m[0m
[;;4mspawn/3[0m.
[;1m spawn(Node, Fun)[0m
Returns the process identifier of a new process started by the
application of [;;4mFun[0m to the empty list [;;4m[][0m on [;;4mNode[0m. If [;;4mNode[0m
does not exist, a useless pid is returned. Otherwise works like [;;4m[0m
[;;4mspawn/3[0m.
[;1m spawn(Module, Function, Args)[0m
Returns the process identifier of a new process started by the
application of [;;4mModule:Function[0m to [;;4mArgs[0m.
[;;4merror_handler:undefined_function(Module, Function, Args)[0m is
evaluated by the new process if [;;4mModule:Function/Arity[0m does not
exist (where [;;4mArity[0m is the length of [;;4mArgs[0m). The error handler
can be redefined (see [;;4mprocess_flag/2[0m). If [;;4merror_handler[0m is
undefined, or the user has redefined the default [;;4merror_handler[0m
and its replacement is undefined, a failure with reason [;;4mundef[0m
occurs.
Example:
> spawn(speed, regulator, [high_speed, thin_cut]).
<0.13.1>
[;1m spawn(Node, Module, Function, Args)[0m
Returns the process identifier (pid) of a new process started by
the application of [;;4mModule:Function[0m to [;;4mArgs[0m on [;;4mNode[0m. If [;;4mNode[0m
does not exist, a useless pid is returned. Otherwise works like [;;4m[0m
[;;4mspawn/3[0m.
|