Sha256: b9504b1ef40a58d96af4c5f4aaf48bfdb5dd5c858b4550cb467664f0161b7f4b

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

require 'backgrounded/handler/abstract_handler'

module Backgrounded
  module Handler
    # throw requests out the window
    # useful for test environment to avoid any background work
    class NoOpHandler < AbstractHandler
      def request(object, method, args)
        # do nothing
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
backgrounded-2.0.0 lib/backgrounded/handler/no_op_handler.rb
backgrounded-2.0.0.rc2 lib/backgrounded/handler/no_op_handler.rb
backgrounded-2.0.0.rc1 lib/backgrounded/handler/no_op_handler.rb