From 17da9d0d5e08ef313055cf799fec7ee856fde1d4 Mon Sep 17 00:00:00 2001 From: Raimo Niskanen Date: Mon, 25 Feb 2019 12:10:40 +0100 Subject: Create a gen_statem type for enter_loop options --- lib/stdlib/doc/src/gen_statem.xml | 63 ++++++++++++++++++++------------------- lib/stdlib/doc/src/sys.xml | 5 +++- 2 files changed, 36 insertions(+), 32 deletions(-) (limited to 'lib/stdlib/doc/src') diff --git a/lib/stdlib/doc/src/gen_statem.xml b/lib/stdlib/doc/src/gen_statem.xml index dfecd235c9..0a7619baf5 100644 --- a/lib/stdlib/doc/src/gen_statem.xml +++ b/lib/stdlib/doc/src/gen_statem.xml @@ -4,7 +4,7 @@
- 20162018 + 20162019 Ericsson AB. All Rights Reserved. @@ -513,36 +513,6 @@ handle_event(_, _, State, Data) -> - - - -

- Debug option that can be used when starting - a gen_statem server through, - enter_loop/4-6. -

-

- For every entry in Dbgs, - the corresponding function in - sys is called. -

-
-
- - - -

- hibernate_after option that can be used when starting - a gen_statem server through, - enter_loop/4-6. -

-

If option{hibernate_after,HibernateAfterTimeout} is present, the gen_statem - process awaits any message for HibernateAfterTimeout milliseconds and - if no message is received, the process goes into hibernation automatically - (by calling proc_lib:hibernate/3). -

-
-
@@ -562,6 +532,37 @@ handle_event(_, _, State, Data) ->

+ + + +

+ Options that can be used when starting + a gen_statem server through, + enter_loop/4-6. +

+ + hibernate_after + +

+ HibernateAfterTimeout + specifies that the gen_statem process awaits + any message for HibernateAfterTimeout milliseconds and + if no message is received, the process goes into hibernation + automatically (by calling + proc_lib:hibernate/3). +

+
+ debug + +

+ For every entry in Dbgs, + the corresponding function in + sys is called. +

+
+
+
+
diff --git a/lib/stdlib/doc/src/sys.xml b/lib/stdlib/doc/src/sys.xml index 9fe816e33a..bf48ae0723 100644 --- a/lib/stdlib/doc/src/sys.xml +++ b/lib/stdlib/doc/src/sys.xml @@ -4,7 +4,7 @@
- 19962018 + 19962019 Ericsson AB. All Rights Reserved. @@ -122,6 +122,9 @@ + + + -- cgit v1.2.3