diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2012-01-23 11:15:19 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-01-23 11:15:19 +0000 |
commit | d1ef82a83ae5e87610aa6d8c1f5cd1c15bf72781 (patch) | |
tree | 007f6c6dd810a1ae37d31fe530e53c001ae9de5f /src/worker_pool.erl | |
parent | e12988d002acac908f007ed3fb4c3bc69f7de93c (diff) | |
download | rabbitmq-server-d1ef82a83ae5e87610aa6d8c1f5cd1c15bf72781.tar.gz |
use correct type for {M,F,A}
the built-in mfa() type stands for module-function-*arity*
Diffstat (limited to 'src/worker_pool.erl')
-rw-r--r-- | src/worker_pool.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/worker_pool.erl b/src/worker_pool.erl index 456ff39f..fcb07a16 100644 --- a/src/worker_pool.erl +++ b/src/worker_pool.erl @@ -37,10 +37,11 @@ -ifdef(use_specs). +-type(mfargs() :: {atom(), atom(), [any()]}). + -spec(start_link/0 :: () -> {'ok', pid()} | {'error', any()}). --spec(submit/1 :: (fun (() -> A) | {atom(), atom(), [any()]}) -> A). --spec(submit_async/1 :: - (fun (() -> any()) | {atom(), atom(), [any()]}) -> 'ok'). +-spec(submit/1 :: (fun (() -> A) | mfargs()) -> A). +-spec(submit_async/1 :: (fun (() -> any()) | mfargs()) -> 'ok'). -spec(idle/1 :: (any()) -> 'ok'). -endif. |