Sha256: 986d8e22ff560bdc9a4831845c21faa624301c5c890bf22a73c0272dae133064
Contents?: true
Size: 327 Bytes
Versions: 2
Compression:
Stored size: 327 Bytes
Contents
class HardWorker # The worker class that actually gets the jobs from the queue # and calls them. Expects the jobs to be procs. class Worker def initialize start_working end def start_working loop do pp HardWorker.fetch_job.call puts 'fetching jobs...' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hard_worker-0.0.2 | lib/hard_worker/worker.rb |
hard_worker-0.0.1 | lib/hard_worker/worker.rb |