Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
3603-Reference-manual-Improve-documentation-of-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3603-Reference-manual-Improve-documentation-of-the-receiv.patch of Package erlang
From 22b82684a2cf715b69d656be1e00778b6f119509 Mon Sep 17 00:00:00 2001 From: Rickard Green <rickard@erlang.org> Date: Tue, 23 Mar 2021 23:01:23 +0100 Subject: [PATCH 3/6] Reference manual: Improve documentation of the 'receive' expression --- system/doc/reference_manual/expressions.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml index c13e6f04c3..0dbbba6795 100644 --- a/system/doc/reference_manual/expressions.xml +++ b/system/doc/reference_manual/expressions.xml @@ -430,14 +430,15 @@ receive PatternN [when GuardSeqN] -> BodyN end</pre> - <p>Receives messages sent to the process using the send operator - (!). The patterns <c>Pattern</c> are sequentially matched - against the first message in time order in the mailbox, then + <p> + Fetches a received message present in the message queue of + the process. The patterns <c>Pattern</c> are sequentially matched + against the first message in time order in the message queue, then the second, and so on. If a match succeeds and the optional guard sequence <c>GuardSeq</c> is true, the corresponding <c>Body</c> is evaluated. The matching message is consumed, that - is, removed from the mailbox, while any other messages in - the mailbox remain unchanged.</p> + is, removed from the mail queue, while any other messages in + the mail queue remain unchanged.</p> <p>The return value of <c>Body</c> is the return value of the <c>receive</c> expression.</p> <p><c>receive</c> never fails. The execution is suspended, possibly -- 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