Class: ProconBypassMan::RemoteAction::TaskQueue

Inherits:
Queue
  • Object
show all
Defined in:
lib/procon_bypass_man/remote_action/task_queue.rb

Instance Method Summary collapse

Instance Method Details

#non_blocking_shiftObject



6
7
8
# File 'lib/procon_bypass_man/remote_action/task_queue.rb', line 6

def non_blocking_shift
  present? && shift
end

#present?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/procon_bypass_man/remote_action/task_queue.rb', line 2

def present?
  not empty?
end