Skip to content

Commit 99c386e

Browse files
author
Francois
committed
consumer: added close! with timeout argument
1 parent 93edcf1 commit 99c386e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/kinsky/client.clj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@
520520
GenericDriver
521521
(close! [this]
522522
(.close consumer))
523+
(close! [this timeout]
524+
(if (nil? timeout)
525+
(.close consumer)
526+
(.close consumer (long timeout) TimeUnit/MILLISECONDS)))
523527
MetadataDriver
524528
(partitions-for [this topic]
525529
(mapv partition-info->data (.partitionsFor consumer topic)))

0 commit comments

Comments
 (0)