diff options
author | Ingela Anderton Andin <[email protected]> | 2017-04-06 16:03:11 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-04-27 11:07:38 +0200 |
commit | c6bdd67b33b70d862e2a2d0f582106f2e930d970 (patch) | |
tree | 6d8f9b0661466c4c36d88e8ee7666c4b8a0754c0 /lib/stdlib/doc/src/gen_statem.xml | |
parent | a1100c46c2ca2121d723edc03cb7885e3014af7c (diff) | |
download | otp-c6bdd67b33b70d862e2a2d0f582106f2e930d970.tar.gz otp-c6bdd67b33b70d862e2a2d0f582106f2e930d970.tar.bz2 otp-c6bdd67b33b70d862e2a2d0f582106f2e930d970.zip |
stdlib: Deprecate gen_fsm
Diffstat (limited to 'lib/stdlib/doc/src/gen_statem.xml')
-rw-r--r-- | lib/stdlib/doc/src/gen_statem.xml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/stdlib/doc/src/gen_statem.xml b/lib/stdlib/doc/src/gen_statem.xml index 5eb13db1aa..18089a8191 100644 --- a/lib/stdlib/doc/src/gen_statem.xml +++ b/lib/stdlib/doc/src/gen_statem.xml @@ -62,8 +62,8 @@ </p> </note> <p> - The <c>gen_statem</c> behavior is intended to replace - <seealso marker="gen_fsm"><c>gen_fsm</c></seealso> for new code. + The <c>gen_statem</c> behavior replaces + <seealso marker="gen_fsm"><c>gen_fsm</c> </seealso> in Erlang/OTP 20.0. It has the same features and adds some really useful: </p> <list type="bulleted"> @@ -78,8 +78,10 @@ <p> The callback model(s) for <c>gen_statem</c> differs from the one for <seealso marker="gen_fsm"><c>gen_fsm</c></seealso>, - but it is still fairly easy to rewrite - from <c>gen_fsm</c> to <c>gen_statem</c>. + but it is still fairly easy to + <seealso marker="gen_fsm#Migration to gen_statem"> + rewrite from + </seealso> <c>gen_fsm</c> to <c>gen_statem</c>. </p> <p> A generic state machine process (<c>gen_statem</c>) implemented @@ -945,7 +947,6 @@ handle_event(_, _, State, Data) -> <seealso marker="#state callback">state callback</seealso> return value <c>{next_state,NextState,NewData,Timeout}</c> allowed like for <c>gen_fsm</c>'s - <seealso marker="gen_fsm#Module:StateName/2"><c>Module:StateName/2</c></seealso>. </p> </item> <tag><c>timeout</c></tag> |