README.markdown in zk-1.7.3 vs README.markdown in zk-1.7.4

- old
+ new

@@ -62,56 +62,10 @@ [recipes]: http://zookeeper.apache.org/doc/current/recipes.html [Mongoid]: http://mongoid.org/ [EventMachine]: https://github.com/eventmachine/eventmachine [zk-eventmachine]: https://github.com/slyphon/zk-eventmachine -## NEWS ## - -### v1.7.1 ### - -* Fixes nasty bug "LockWaitTimeout causes lock to be forever unusable" (#49) - -### v1.7.0 ### - -* Added Locker timeout feature for blocking calls. (issue #40) - -Previously, when dealing with locks, there were only two options: blocking or non-blocking. In order to come up with a time-limited lock, you had to poll every so often until you acquired the lock. This is, needless to say, both inefficient and doesn't allow for fair acquisition. - -A timeout option has been added so that when blocking waiting for a lock, you can specify a deadline by which the lock should have been acquired. - -```ruby -zk = ZK.new - -locker = zk.locker('lock name') - -begin - locker.lock(:wait => 5.0) # wait up to 5.0 seconds to acquire the lock -rescue ZK::Exceptions::LockWaitTimeoutError - $stderr.puts "could not acquire the lock in time" -end -``` - -Also available when using the convenience `#with_lock` methods - -```ruby - -zk = ZK.new - -begin - zk.with_lock('lock name', :wait => 5.0) do |lock| - # do stuff while holding lock - end -rescue ZK::Exceptions::LockWaitTimeoutError - $stderr.puts "could not acquire the lock in time" -end - -``` - -### v1.6.4 ### - -* Remove unnecessary dependency on backports gem -* *Fix for use in resque!* A small bug was preventing resque from activating the fork hook. - +## Release info / Changelog See the [RELEASES][] page for more info on features and bugfixes in each release. ## Caveats