class Rufus::Scheduler::EmScheduler
def stop(opts={})
will not interrupt the job run).
currently running, this method will wait for it to terminate, it
(note that if a job is
are done with their current run if any.
the method will return once all the jobs have been unscheduled and
If the option :terminate is set to true,
== :terminate => true
EventMachine (but only if it started the EM by itself !).
If the :stop_em option is passed and set to true, it will stop the
== :stop_em => true
Stops the scheduler.
def stop(opts={}) @timer.cancel terminate_all_jobs if opts[:terminate] EM.stop if opts[:stop_em] and @em_thread end