lib/quebert/async_sender/promise.rb
def async_send(*args)
          meth = args.shift
          beanstalk = args.last.delete(:beanstalk) if args.last.is_a?(::Hash)

          Quebert.deprecate "#async_send should be called via #{self.class.name}.async(#{beanstalk.inspect}).#{args.first}(#{args.map(&:inspect).join(', ')})" do
            async(beanstalk || {}).send(meth, *args)
          end
        end
# Legacy way of enqueueing jobs.
Legacy way of enqueueing jobs.
Legacy way of enqueueing jobs .
def async_send(*args)
          meth = args.shift
          beanstalk = args.last.delete(:beanstalk) if args.last.is_a?(::Hash)
          Quebert.deprecate "#async_send should be called via #{self.class.name}.async(#{beanstalk.inspect}).#{args.first}(#{args.map(&:inspect).join(', ')})" do
            async(beanstalk || {}).send(meth, *args)
          end
        end
def async_send ( * args ) meth = args . shift beanstalk = args . last . delete ( :beanstalk ) if args . last . is_a? ( :: Hash ) Quebert . deprecate "#async_send should be called via #{self.class.name}.async(#{beanstalk.inspect}).#{args.first}(#{args.map(&:inspect).join(', ')})" do async ( beanstalk || { } ) . send ( meth , * args ) end end
Legacy way of enqueueing jobs.
Legacy way of enqueueing jobs .
args