lib/workers/scheduler.rb in workers-0.0.9 vs lib/workers/scheduler.rb in workers-0.1.0

- old
+ new

@@ -6,9 +6,11 @@ @logger = Workers::LogProxy.new(options[:logger]) @pool = options[:pool] || Workers.pool @schedule = SortedSet.new @mutex = Mutex.new @thread = Thread.new { start_loop } + + return nil end def schedule(timer) @mutex.synchronize do @schedule << timer