summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-03-27 20:18:36 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-03-27 20:18:36 +0100
commit12591b3a45130abeccaed3cf9facdf89cd042e06 (patch)
tree8d3b6184f69da31fcf77c00923e124457b53096f
parentc48c2cd56878b514f5d4d2a5b9b7902443749667 (diff)
downloadrabbitmq-server-12591b3a45130abeccaed3cf9facdf89cd042e06.tar.gz
correct spec for BQ:dropwhile
-rw-r--r--include/rabbit_backing_queue_spec.hrl7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl
index bf93baba..79d44e1b 100644
--- a/include/rabbit_backing_queue_spec.hrl
+++ b/include/rabbit_backing_queue_spec.hrl
@@ -25,7 +25,8 @@
-type(async_callback() :: fun ((atom(), fun ((atom(), state()) -> state())) -> 'ok')).
-type(duration() :: ('undefined' | 'infinity' | number())).
--type(msg_fun() :: fun((rabbit_types:basic_message(), ack()) -> 'ok')).
+-type(msg_fun() :: fun((rabbit_types:basic_message(), ack()) -> 'ok') |
+ 'undefined').
-spec(start/1 :: ([rabbit_amqqueue:name()]) -> 'ok').
-spec(stop/0 :: () -> 'ok').
@@ -45,8 +46,8 @@
-> {undefined, state()}).
-spec(drain_confirmed/1 :: (state()) -> {[rabbit_guid:guid()], state()}).
-spec(dropwhile/3 ::
- (fun ((rabbit_types:message_properties()) -> boolean()),
- msg_fun() | 'undefined', state())
+ (fun ((rabbit_types:message_properties()) -> boolean()), msg_fun(),
+ state())
-> state()).
-spec(fetch/2 :: (true, state()) -> {fetch_result(ack()), state()};
(false, state()) -> {fetch_result(undefined), state()}).