lib/ably/modules/async_wrapper.rb in ably-0.7.0 vs lib/ably/modules/async_wrapper.rb in ably-0.7.1

- old
+ new

@@ -35,11 +35,11 @@ # Will yield the provided block in a new thread and return an {EventMachine::Deferrable http://www.rubydoc.info/github/eventmachine/eventmachine/EventMachine/Deferrable} # # @yield [Object] operation block that is run in a thread # @return [EventMachine::Deferrable] # - def async_wrap(success_callback = nil, &operation) - raise ArgumentError, "Operation block is missing" unless block_given? + def async_wrap(success_callback = nil) + raise ArgumentError, 'Block required' unless block_given? EventMachine::DefaultDeferrable.new.tap do |deferrable| deferrable.callback &success_callback if success_callback operation_with_exception_handling = proc do