Sha256: e19884bfed4cad2370db852d4a54394c90df0674c72f856ee3bdcdb7b31e45c6

Contents?: true

Size: 206 Bytes

Versions: 5

Compression:

Stored size: 206 Bytes

Contents

module ProconBypassMan
  module RemoteMacro
    class TaskQueue < ::Queue
      def present?
        not empty?
      end

      def non_blocking_shift
        present? && shift
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
procon_bypass_man-0.2.2 lib/procon_bypass_man/remote_macro/task_queue.rb
procon_bypass_man-0.2.1 lib/procon_bypass_man/remote_macro/task_queue.rb
procon_bypass_man-0.2.0 lib/procon_bypass_man/remote_macro/task_queue.rb
procon_bypass_man-0.1.23 lib/procon_bypass_man/remote_macro/task_queue.rb
procon_bypass_man-0.1.22 lib/procon_bypass_man/remote_macro/task_queue.rb