README.md in zhong-0.1.7 vs README.md in zhong-0.1.8
- old
+ new
@@ -32,18 +32,17 @@
every(1.second, "compute", if: -> (t) { t.wday == 3 && rand < 0.5 }) do
puts "something happened on wednesday, maybe"
end
end
- # note: callbacks that return nil or false will cause event to not run
+ # note: callbacks that explicitly false will cause event to not run
on(:before_tick) do
puts "ding"
true
end
on(:after_tick) do
puts "dong"
- true
end
on(:before_run) do |job, time|
puts "running #{job}"
true # can conditionally run a specific job