README.md in ears-0.3.3 vs README.md in ears-0.4.3

- old
+ new

@@ -61,9 +61,19 @@ ack end end ``` +And, do not forget to run it. Be prepared that unhandled errors will be reraised. So, take care of cleanup work. + +```ruby +begin + Ears.run! +ensure + # all your cleanup work goes here... +end +``` + At the end of the `#work` method, you must always return `ack`, `reject`, or `requeue` to signal what should be done with the message. ### Middlewares `Ears` supports middlewares that you can use for recurring tasks that you don't always want to reimplement. It comes with some built-in middlewares: