Sha256: f23e204f4e2284cabfb8c23c340d44cd107a228787fb591a17d7e70ab029f9e4

Contents?: true

Size: 659 Bytes

Versions: 3

Compression:

Stored size: 659 Bytes

Contents

require 'thread'
require 'set'

require 'workers/version'
require 'workers/helpers'
require 'workers/worker'
require 'workers/pool'
require 'workers/event'
require 'workers/log_proxy'
require 'workers/scheduler'
require 'workers/timer'
require 'workers/periodic_timer'

module Workers
  def self.pool
    return @pool ||= Workers::Pool.new
  end

  def self.pool=(val)
    @pool.dispose if @pool
    @pool = val
  end

  def self.scheduler
    return @scheduler ||= Workers::Scheduler.new
  end

  def self.scheduler=(val)
    @scheduler.dispose if @scheduler
    @scheduler = val
  end
end

# Force initialization of defaults.
Workers.pool
Workers.scheduler

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workers-0.0.8 lib/workers.rb
workers-0.0.7 lib/workers.rb
workers-0.0.6 lib/workers.rb