Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
provides various facilities to build tools using eventmachine
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION.yml
event_utils.gemspec

README.rdoc

event_utils

EventUtils is meant to provide modules and classes to help building services on top of EventMachine without having to cope with some of the mechnics of eventmachine itself.

the first implemented facility is EventUtils::DeferredLoop

it makes possible to perform action on groups of deferrable objects in an intuitive way, and without having to take care of starting/stopping the EventMachine reactor

example:

d1 and d2 are two deferrables
and we want to compare them but the comparaison is only feasible when
d1 and d2 have both deferred status set.

In this case the code will look like

require 'event_utils'
include EventUtils

in_deferred_loop do
  waiting_for d1, d2 do
    d1 > d2
  end
end

Check assertbuggy.blogspot.com for further informations and tutorials

Copyright

Copyright © 2009 Paolo Negri. See LICENSE for details.

Something went wrong with that request. Please try again.