aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-03-03 11:27:02 +0100
committerRaimo Niskanen <[email protected]>2016-03-03 11:27:02 +0100
commit447f3cf2d041670d93683de4fab02338b26fbaf1 (patch)
treed4aa1575c46a7af9127d009763b76b43f7e2e4fd /lib/stdlib/src
parentd840b24857a1d54419953661f70716c449c11864 (diff)
downloadotp-447f3cf2d041670d93683de4fab02338b26fbaf1.tar.gz
otp-447f3cf2d041670d93683de4fab02338b26fbaf1.tar.bz2
otp-447f3cf2d041670d93683de4fab02338b26fbaf1.zip
Rename state_timeout -> event_timeout
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/gen_statem.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index 438c366f8e..92e26bd7ed 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -77,7 +77,7 @@
-type callback_mode() :: 'state_functions' | 'handle_event_function'.
-type transition_option() ::
- postpone() | hibernate() | state_timeout().
+ postpone() | hibernate() | event_timeout().
-type postpone() ::
%% If 'true' postpone the current event
%% and retry it when the state changes (=/=)
@@ -85,7 +85,7 @@
-type hibernate() ::
%% If 'true' hibernate the server instead of going into receive
boolean().
--type state_timeout() ::
+-type event_timeout() ::
%% Generate a ('timeout', Msg, ...) event after Time
%% unless some other event is delivered
Time :: timeout().
@@ -111,9 +111,9 @@
'hibernate' | % Set the hibernate option
{'hibernate', Hibernate :: hibernate()} |
%%
- (Timeout :: state_timeout()) | % {timeout,Timeout}
- {'timeout', % Set the timeout option
- Time :: state_timeout(), Msg :: term()} |
+ (Timeout :: event_timeout()) | % {timeout,Timeout}
+ {'timeout', % Set the event timeout option
+ Time :: event_timeout(), Msg :: term()} |
%%
reply_action() |
%%