diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-13 04:26:45 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-13 04:26:45 +0100 |
commit | 47f5b3df329ca7b75e0e090e9bd09338fe716b4d (patch) | |
tree | 20bd1e0f4f49a4131b1b9c5c3bc453481eeec562 /src/worker_pool_worker.erl | |
parent | 1f982ed96126acf6654bd9db7bed34f21556eaf4 (diff) | |
download | rabbitmq-server-47f5b3df329ca7b75e0e090e9bd09338fe716b4d.tar.gz |
use consistent return types for start/start_link functionsbug23120
Diffstat (limited to 'src/worker_pool_worker.erl')
-rw-r--r-- | src/worker_pool_worker.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/worker_pool_worker.erl b/src/worker_pool_worker.erl index a61e4cc3..42049d50 100644 --- a/src/worker_pool_worker.erl +++ b/src/worker_pool_worker.erl @@ -44,8 +44,7 @@ -ifdef(use_specs). --spec(start_link/1 :: - (any()) -> {'ok', pid()} | 'ignore' | rabbit_types:error(any())). +-spec(start_link/1 :: (any()) -> {'ok', pid()} | {'error', any()}). -spec(submit/2 :: (pid(), fun (() -> A) | {atom(), atom(), [any()]}) -> A). -spec(submit_async/2 :: (pid(), fun (() -> any()) | {atom(), atom(), [any()]}) -> 'ok'). |