Skip to content

hungryblank/event_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

provides various facilities to build tools using eventmachine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages