lib/beanstalker/extend.rb in beanstalker-0.4.14 vs lib/beanstalker/extend.rb in beanstalker-0.4.15
- old
+ new
@@ -46,9 +46,17 @@
@class_methods_async_options ||= {}
if options
@class_methods_async_options.merge!(method.to_sym => options)
end
end
+
+ def async_rescue(&block)
+ @async_rescue = block
+ end
+
+ def async_error_handler
+ @async_rescue
+ end
end
def interpolate_async_options(options, object, *args)
result = {}
options.each do |k,v|