From 063bebc88358f66cea17e3cf777b8b561a5f14c0 Mon Sep 17 00:00:00 2001
From: Anton N Ryabkov
Date: Mon, 24 Apr 2017 12:54:09 +0700
Subject: Added support of auto_hibernate_timeout option for gen_statem.
---
lib/stdlib/doc/src/gen_statem.xml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
(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 17a3a3c83c..9405868c78 100644
--- a/lib/stdlib/doc/src/gen_statem.xml
+++ b/lib/stdlib/doc/src/gen_statem.xml
@@ -452,6 +452,21 @@ handle_event(_, _, State, Data) ->
+
+
+
+
+ auto_hibernate_timeout option that can be used when starting
+ a gen_statem server through,
+ enter_loop/4-6.
+
+ If option{auto_hibernate_timeout,AutoHibernateTimeout} is present, the gen_statem
+ process awaits any message for AutoHibernateTimeout milliseconds and
+ if no message is received, the process goes into hibernation automatically
+ (by calling proc_lib:hibernate/3).
+
+
+
@@ -1550,6 +1565,13 @@ handle_event(_, _, State, Data) ->
{error,timeout}.
+ -
+
If option{auto_hibernate_timeout,AutoHibernateTimeout} is present, the gen_statem
+ process awaits any message for AutoHibernateTimeout milliseconds and
+ if no message is received, the process goes into hibernation automatically
+ (by calling proc_lib:hibernate/3).
+
+
-
If option
--
cgit v1.2.3