chief git blame analyst
Spent 90% waiting for IO, 10% doing actual work :(
It's a toolkit for writing evented applications.
...and many more, sorry I'm lazy
balls = synchronous_ball_count(playground) paint_red(balls) roll_twice(balls) deliver_to_shop(balls)
async_ball_count(small_playground) do |balls| # called only after all balls counted paint_red(balls) do # called only after all balls painted to red roll_twice(balls) deliver_to_shop(balls) end end async_ball_count(large_playground) do |balls| paint_blue(balls) do roll_twice(balls) deliver_to_shop(balls) end end
require 'eventmachine' EventMachine.run do # your code end
Create a basic mirror server!
EM.defer( and where will my code run? )
Isolate your custom evented logic!
I'm a bit late, it's 18:33
EM.stop puts "Thanks"