diff options
author | Raimo Niskanen <[email protected]> | 2018-11-05 16:40:52 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-11-30 10:54:50 +0100 |
commit | a447b904cff36fa2d690f1d0068eb28589369787 (patch) | |
tree | 1a14bdd29d8dd13b1bf607d3115009f20b7af72a /lib/stdlib/src/sys.erl | |
parent | 8893e9f9d0a25c0b3c8cc78765df5cdc0de0bdf8 (diff) | |
download | otp-a447b904cff36fa2d690f1d0068eb28589369787.tar.gz otp-a447b904cff36fa2d690f1d0068eb28589369787.tar.bz2 otp-a447b904cff36fa2d690f1d0068eb28589369787.zip |
Document system_events better
Diffstat (limited to 'lib/stdlib/src/sys.erl')
-rw-r--r-- | lib/stdlib/src/sys.erl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/stdlib/src/sys.erl b/lib/stdlib/src/sys.erl index 09fe497d11..11513b3482 100644 --- a/lib/stdlib/src/sys.erl +++ b/lib/stdlib/src/sys.erl @@ -31,6 +31,7 @@ install/2, install/3, remove/2, remove/3]). -export([handle_system_msg/6, handle_system_msg/7, handle_debug/4, print_log/1, get_log/1, get_debug/3, debug_options/1, suspend_loop_hib/6]). +-deprecated([{get_debug,3,eventually}]). %%----------------------------------------------------------------- %% Types @@ -42,10 +43,17 @@ | {'global', term()} | {'via', module(), term()}. -type system_event() :: {'in', Msg :: _} - | {'in', Msg :: _, From :: _} + | {'in', Msg :: _, State :: _} | {'out', Msg :: _, To :: _} | {'out', Msg :: _, To :: _, State :: _} - | term(). + | {'noreply', State :: _} + | {'continue', Continuation :: _} + | {'code_change', Event :: _, State :: _} + | {'postpone', Event :: _, State :: _, NextState :: _} + | {'consume', Event :: _, State :: _, NextState :: _} + | {'enter', State :: _} + | {'terminate', Reason :: _, State :: _} + | term(). -opaque dbg_opt() :: {'trace', 'true'} | {'log', {N :: non_neg_integer(), |