From 82f34a7a9de85b4afc0dac4c9c426939264c5039 Mon Sep 17 00:00:00 2001
From: Raimo Niskanen
Date: Thu, 18 Feb 2016 16:06:57 +0100
Subject: Write some convenience helpers
---
lib/stdlib/doc/src/gen_statem.xml | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
(limited to 'lib/stdlib/doc')
diff --git a/lib/stdlib/doc/src/gen_statem.xml b/lib/stdlib/doc/src/gen_statem.xml
index aeab09615c..5fbedb12f8 100644
--- a/lib/stdlib/doc/src/gen_statem.xml
+++ b/lib/stdlib/doc/src/gen_statem.xml
@@ -534,6 +534,13 @@ erlang:'!' -----> Module:StateName/5
+
+ {stop,Reason}
+
+ - The same as
+ {stop,Reason,[],StateData}
+ but keeps the old StateData.
+
{stop,Reason,NewStateData}
@@ -551,6 +558,19 @@ erlang:'!' -----> Module:StateName/5
Module:terminate/3
with Reason.
+
+
+ {next_state,StateOps}
+
+
+ - The same as
+
+ {next_state,State,StateData,StateOps}
+ but keeps the old State and StateData.
+ Believe it or not, but this one has actually
+ been proven useful to throw/1 from deep down
+ in the state logic.
+
{next_state,NewState,NewStateData}
@@ -805,6 +825,7 @@ erlang:'!' -----> Module:StateName/5
+
Send a reply to a client
@@ -820,6 +841,8 @@ erlang:'!' -----> Module:StateName/5
{call,Client}
argument to the
state function.
+ Client and Reply
+ an also be specified using ReplyOperation.
A reply sent with this function will not be visible
--
cgit v1.2.3