Sha256: 505430847d6d1cc8d6ea79e6d72dc2bd53ba163baab00c63b306d15b4117e7b3

Contents?: true

Size: 192 Bytes

Versions: 4

Compression:

Stored size: 192 Bytes

Contents

module Lux::DelayedJob::Memory
  extend self

  @@JOBS = []

  def push(data)
    @@JOBS.push data
    Thread.new { true while Lux::DelayedJob.pop }
  end

  def pop
    @@JOBS.shift
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lux-fw-0.2.3 ./lib/lux/delayed_job/lib/memory.rb
lux-fw-0.2.1 ./lib/lux/delayed_job/lib/memory.rb
lux-fw-0.1.35 ./lib/lux/delayed_job/lib/memory.rb
lux-fw-0.1.17 ./lib/lux/delayed_job/lib/memory.rb