README.markdown in morlock-0.0.4 vs README.markdown in morlock-0.0.6
- old
+ new
@@ -26,11 +26,11 @@
With Bundler:
gem 'morlock', :require => 'morlock/rails'
-Or in any script after Rails has loaded:
+Or in any script:
require 'morlock/rails'
At this point, `Rails.morlock` should be defined and available. Use it instead of `morlock` in the examples below.
@@ -39,13 +39,15 @@
Possible usages:
handle_failed_lock unless morlock.lock(key) do
# We have the lock
end
-
+
morlock.lock(key) { # We have the lock } || raise "Unable to lock!"
morlock.lock(key, :failure => failure_proc) do
# We have the lock
end
morlock.lock(key, :failure => failure_proc, :success => success_proc)
+
+Morlock doesn't currently do retries, but this could be added in the future. Feel free to submit a patch!