Sha256: a86991bb59c97acfb0905ec8209d8e6e2adb81aadc798fe47e332210138cc590

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

# $Id: reactor.rb 321 2007-05-22 22:15:04Z blackhedd $
#
# Author:: Francis Cianfrocca (gmail: blackhedd)
# Homepage::  http://rubyeventmachine.com
# Date:: 18 May 2006
# 
# See EventMachine and EventMachine::Connection for documentation and
# usage examples.
#
#----------------------------------------------------------------------------
#
# Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved.
# Gmail: blackhedd
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of either: 1) the GNU General Public License
# as published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version; or 2) Ruby's License.
# 
# See the file COPYING for complete licensing information.
#
#---------------------------------------------------------------------------
#



require 'singleton'

module Evma
class Reactor
  include Singleton

  #--
  def initialize
    EventMachine.initialize_event_machine
  end

  #--
  #
  def run
    EventMachine.run_machine
  end

end # class Reactor
end # module Evma



Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
eventmachine-0.10.0 lib/evma/reactor.rb
eventmachine-0.7.2 lib/evma/reactor.rb
eventmachine-0.9.0 lib/evma/reactor.rb
eventmachine-win32-0.7.2 lib/evma/reactor.rb
eventmachine-0.8.1 lib/evma/reactor.rb
eventmachine-0.8.0 lib/evma/reactor.rb