aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/design_principles
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2017-03-03 11:48:27 +0100
committerRaimo Niskanen <[email protected]>2017-03-03 11:48:27 +0100
commite7ec27f781b2db75b7b82903ae73f089a1b3286a (patch)
tree8e3173e98aaaab54613fe2ebe7c5194605868f79 /system/doc/design_principles
parent6df4e8aaf35488defd19c468395f4a5ae9714ada (diff)
parent960b4e63c8fcfa8577ac877464e300959f20db12 (diff)
downloadotp-e7ec27f781b2db75b7b82903ae73f089a1b3286a.tar.gz
otp-e7ec27f781b2db75b7b82903ae73f089a1b3286a.tar.bz2
otp-e7ec27f781b2db75b7b82903ae73f089a1b3286a.zip
Merge branch 'maint'
Diffstat (limited to 'system/doc/design_principles')
-rw-r--r--system/doc/design_principles/statem.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/doc/design_principles/statem.xml b/system/doc/design_principles/statem.xml
index d08ddd0036..f4d84ab163 100644
--- a/system/doc/design_principles/statem.xml
+++ b/system/doc/design_principles/statem.xml
@@ -1180,6 +1180,17 @@ open(state_timeout, lock, Data) ->
{next_state, locked, Data};
...
]]></code>
+ <p>
+ You can repeat the state entry code by returning one of
+ <c>{repeat_state, ...}</c>, <c>{repeat_state_and_data,_}</c>
+ or <c>repeat_state_and_data</c> that otherwise behaves
+ exactly like their <c>keep_state</c> siblings.
+ See the type
+ <seealso marker="stdlib:gen_statem#type-state_callback_result">
+ <c>state_callback_result()</c>
+ </seealso>
+ in the reference manual.
+ </p>
</section>
<!-- =================================================================== -->