lib/rufus/scheduler.rb in rufus-scheduler-3.5.2 vs lib/rufus/scheduler.rb in rufus-scheduler-3.6.0
- old
+ new
@@ -9,11 +9,11 @@
module Rufus
class Scheduler
- VERSION = '3.5.2'
+ VERSION = '3.6.0'
EoTime = ::EtOrbi::EoTime
require 'rufus/scheduler/util'
require 'rufus/scheduler/jobs'
@@ -113,10 +113,13 @@
def shutdown(opt=nil)
@started_at = nil
#jobs.each { |j| j.unschedule }
- # provokes https://github.com/jmettraux/rufus-scheduler/issue/98
+ #
+ # which provokes https://github.com/jmettraux/rufus-scheduler/issues/98
+ # using the following instead:
+ #
@jobs.array.each { |j| j.unschedule }
@work_queue.clear
if opt == :wait