sneJ (snej) wrote in ruby_lang,

event-loop / run-loop library for Ruby?

I'm finally doing some more Ruby programming. Some of it's with Rails, but right now I'm prototyping a type of server. In implementing this, I'm really missing the "RunLoop" facility of Mac OS X. I'm sure this also exists in Windows and Linux — it's an abstract event loop that a thread runs. Most of your code is written as handlers for events, and there are ways to post events to threads.

Is there an implementation of this for Ruby? It's very useful, and it would probably be easy to implement for a Ruby expert [i.e. not me].
  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.