Merge pull request #23 from massakam/producer-flush

[Issue 2] Support Producer.flush()