Module | EventMachine |
In: |
lib/cool.io/eventmachine.rb
|
EventMachine emulation for Cool.io:
require 'coolio/eventmachine'
Drawbacks: slightly slower than EM. Benefits: timers are more accurate using libev than using EM TODO: some things like connection timeouts aren‘t implemented yet DONE: timers and normal socket functions are implemented.
ltodo: use Coolio‘s PeriodicTimer to wrap EM‘s two similar to it todo: close all connections on ‘stop’, I believe