No commit activity in last 3 years
No release in over 3 years
provides various facilities to help building tools on top of eventmachine
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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 © 2009 Paolo Negri. See LICENSE for details.