aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/supervisor_bridge.erl
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2010-11-10 20:00:52 +0200
committerHenrik Nord <[email protected]>2011-10-07 17:17:06 +0200
commit9bb4ba879b613fc1986ac37c027a16884f3814fe (patch)
treec54127e6a99b5fb721e5b6af20b6bf6a72afa7cd /lib/stdlib/src/supervisor_bridge.erl
parent570594df20b0780333c2b6ba4ff7cfd6a0b02395 (diff)
downloadotp-9bb4ba879b613fc1986ac37c027a16884f3814fe.tar.gz
otp-9bb4ba879b613fc1986ac37c027a16884f3814fe.tar.bz2
otp-9bb4ba879b613fc1986ac37c027a16884f3814fe.zip
Add '-callback' attributes in stdlib's behaviours
Replace the behaviour_info(callbacks) export in stdlib's behaviours with -callback' attributes for all the callbacks.
Diffstat (limited to 'lib/stdlib/src/supervisor_bridge.erl')
-rw-r--r--lib/stdlib/src/supervisor_bridge.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/stdlib/src/supervisor_bridge.erl b/lib/stdlib/src/supervisor_bridge.erl
index 555cb5a66f..e8405ab9a4 100644
--- a/lib/stdlib/src/supervisor_bridge.erl
+++ b/lib/stdlib/src/supervisor_bridge.erl
@@ -22,15 +22,14 @@
%% External exports
-export([start_link/2, start_link/3]).
--export([behaviour_info/1]).
%% Internal exports
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2]).
-export([code_change/3]).
-behaviour_info(callbacks) ->
- [{init,1},{terminate,2}];
-behaviour_info(_Other) ->
- undefined.
+-callback init(Args :: term()) ->
+ {ok, Pid :: pid(), State :: term()} | ignore | {error, Error :: term()}.
+-callback terminate(Reason :: (shutdown | term()), State :: term()) ->
+ Ignored :: term().
%%%-----------------------------------------------------------------
%%% This is a rewrite of supervisor_bridge from BS.3.