summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-11-12 16:48:47 +0000
committerSimon MacMullen <simon@rabbitmq.com>2012-11-12 16:48:47 +0000
commit8765d5500a52d69c029264209cae50305d455942 (patch)
tree1526be77e983b24ec5c003e4ef2ee7841cf93c95
parentadb1e775d4c02657248f37e17a1e13e9ac53a9dd (diff)
downloadrabbitmq-server-git-8765d5500a52d69c029264209cae50305d455942.tar.gz
Specs
-rw-r--r--src/background_gc.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/background_gc.erl b/src/background_gc.erl
index 34741eba70..e053a6779e 100644
--- a/src/background_gc.erl
+++ b/src/background_gc.erl
@@ -34,6 +34,15 @@
%%----------------------------------------------------------------------------
+-ifdef(use_specs).
+
+-spec(start_link/0 :: () -> {'ok', pid()} | {'error', any()}).
+-spec(run/0 :: () -> 'ok').
+
+-endif.
+
+%%----------------------------------------------------------------------------
+
start_link() ->
gen_server2:start_link({local, ?MODULE}, ?MODULE, [],
[{timeout, infinity}]).