tomykaira/clockwork — pull request #31 by jgorset (2013-05-20 13:28:12+00:00)
Title: Run handlers in threads

Clockwork currently misses events if you block for too long:

```ruby
# clock.rb

require "clockwork"

include Clockwork

every 1.second, "say.1" do
puts "Hi! 1 second passed!"
sleep 10
end

every 3.seconds, "say.3" do
puts "Hi! 3 seconds passed!"
end
```

This (albeit contrived) clock triggers `say.1` and `say.3` once every 10 seconds. It misses `say.1` 9 times and `say.3` twice. I'm certainly not advocating using the clock as a substitute for workers, but I think it is not uncommon to have handlers that block for a non-trivial amount of time while they schedule potentially large amounts of jobs.