IO::Reactor
This module is a pure-Ruby implementation of an asynchronous multiplexed IO Reactor which is based on the Reactor design pattern found in Pattern-Oriented Software Architecture, Volume 2: Patterns for Concurrent and Networked Objects. It allows a single thread to demultiplex and dispatch events from one or more IO objects to the appropriate handler.
This module used to be called Ruby-Poll, and used to use the poll(2) system call, but this strategy was not portable, and didn't work with Ruby's threads. It now uses Ruby's IO::select, which should work everywhere Ruby does.
For a complete list of local wiki pages, see TitleIndex.
Downloads
