Class: SolidQueue::Semaphore

Inherits:
Record
  • Object
show all
Defined in:
app/models/solid_queue/semaphore.rb

Defined Under Namespace

Classes: Proxy

Class Method Summary collapse

Methods inherited from Record

non_blocking_lock

Class Method Details

.signal(job) ⇒ Object



13
14
15
# File 'app/models/solid_queue/semaphore.rb', line 13

def signal(job)
  Proxy.new(job).signal
end

.signal_all(jobs) ⇒ Object



17
18
19
# File 'app/models/solid_queue/semaphore.rb', line 17

def signal_all(jobs)
  Proxy.signal_all(jobs)
end

.wait(job) ⇒ Object



9
10
11
# File 'app/models/solid_queue/semaphore.rb', line 9

def wait(job)
  Proxy.new(job).wait
end