Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
3604-Reference-manual-Improve-documentation-of-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3604-Reference-manual-Improve-documentation-of-process-cr.patch of Package erlang
From 0c2a65027b1502a4fd03624e6e4314259a38a7be Mon Sep 17 00:00:00 2001 From: Rickard Green <rickard@erlang.org> Date: Tue, 23 Mar 2021 23:02:15 +0100 Subject: [PATCH 4/6] Reference manual: Improve documentation of process creation --- system/doc/reference_manual/processes.xml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/system/doc/reference_manual/processes.xml b/system/doc/reference_manual/processes.xml index 597258b9fd..d3b1110d23 100644 --- a/system/doc/reference_manual/processes.xml +++ b/system/doc/reference_manual/processes.xml @@ -40,18 +40,24 @@ <section> <title>Process Creation</title> - <p>A process is created by calling <c>spawn</c>:</p> + <p>A process is created by calling <c>spawn()</c>:</p> <pre> spawn(Module, Name, Args) -> pid() Module = Name = atom() Args = [Arg1,...,ArgN] ArgI = term()</pre> - <p><c>spawn</c> creates a new process and returns the pid.</p> + <p><c>spawn()</c> creates a new process and returns the pid.</p> <p>The new process starts executing in <c>Module:Name(Arg1,...,ArgN)</c> where the arguments are the elements of the (possible empty) <c>Args</c> argument list.</p> - <p>There exist a number of other <c>spawn</c> BIFs, for example, - <c>spawn/4</c> for spawning a process at another node.</p> + <p>There exist a number of different <c>spawn</c> BIFs:</p> + <list> + <item><seemfa marker="erts:erlang#spawn/4"><c>spawn/1,2,3,4</c></seemfa></item> + <item><seemfa marker="erts:erlang#spawn_link/4"><c>spawn_link/1,2,3,4</c></seemfa></item> + <item><seemfa marker="erts:erlang#spawn_monitor/4"><c>spawn_monitor/1,2,3,4</c></seemfa></item> + <item><seemfa marker="erts:erlang#spawn_opt/5"><c>spawn_opt/2,3,4,5</c></seemfa></item> + <item><seemfa marker="erts:erlang#spawn_request/5"><c>spawn_request/1,2,3,4,5</c></seemfa></item> + </list> </section> <section> -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor