alephcloud / hs-aws-kinesis-client

A producer/consumer client library for Kinesis
http://hackage.haskell.org/package/aws-kinesis-client
Apache License 2.0
5 stars 3 forks source link

[producer] Proper shutdown #19

Closed jonsterling closed 9 years ago

jonsterling commented 9 years ago

Currently, withKinesisProducer kont creates a producer that just stays alive indefinitely until the current thread exits. It would be better for the following to occur once kont exits:

  1. Close the message queue.
  2. Gracefully flush the queue to Kinesis, with a configurable timeout.
jonsterling commented 9 years ago

Resolved by #20