diff options
author | Kostis Sagonas <[email protected]> | 2010-03-21 09:54:10 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-04-13 07:51:20 +0200 |
commit | 0ca1793ce70563721da505f724a8e6807750b15d (patch) | |
tree | 889ea3a178b88e827c67bb12e840c7d543294038 /lib/stdlib/src/dets_sup.erl | |
parent | 19babf5477eefb1e65ff6ec008965129924c028d (diff) | |
download | otp-0ca1793ce70563721da505f724a8e6807750b15d.tar.gz otp-0ca1793ce70563721da505f724a8e6807750b15d.tar.bz2 otp-0ca1793ce70563721da505f724a8e6807750b15d.zip |
stdlib: Add types and specs
Diffstat (limited to 'lib/stdlib/src/dets_sup.erl')
-rw-r--r-- | lib/stdlib/src/dets_sup.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/stdlib/src/dets_sup.erl b/lib/stdlib/src/dets_sup.erl index 5c6caa787d..43499a7ad5 100644 --- a/lib/stdlib/src/dets_sup.erl +++ b/lib/stdlib/src/dets_sup.erl @@ -22,9 +22,16 @@ -export([start_link/0, init/1]). +-spec start_link() -> {'ok', pid()} | 'ignore' | {'error', term()}. + start_link() -> supervisor:start_link({local, dets_sup}, dets_sup, []). +-spec init([]) -> + {'ok', {{'simple_one_for_one', 4, 3600}, + [{'dets', {'dets', 'istart_link', []}, + 'temporary', 30000, 'worker', ['dets']}]}}. + init([]) -> SupFlags = {simple_one_for_one, 4, 3600}, Child = {dets, {dets, istart_link, []}, temporary, 30000, worker, [dets]}, |