examples/scheduler_usage.rb in openwferu-0.9.10.653 vs examples/scheduler_usage.rb in openwferu-0.9.11
- old
+ new
@@ -1,10 +1,12 @@
#
# showing how to use the scheduler
#
+require 'rubygems'
+
require 'time'
require 'openwfe/util/scheduler'
include OpenWFE
@@ -33,10 +35,10 @@
p "after 2 seconds"
end
scheduler.schedule_in("5500") do
p "after 5500 ms stopping the scheduler and exiting..."
- scheduler.do_stop
+ scheduler.stop
end
#scheduler.schedule_at("x" do
#end