Sha256: 2578144ae50a28c6c6a14fae75d8b3378f8392ce7608504d68e19ca215c533f0
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
require 'tribe' require 'eventmachine' require 'tribe_em/version' require 'tribe_em/connection' require 'tribe_em/tcp_server' module Tribe module EM def self.start @em_thread = Thread.new { ::EM.run {} } return nil end def self.stop ::EM.stop_event_loop @em_thread.join if @em_thread @em_thread = nil return nil end def self.running? return ::EM.reactor_running? end end end # Force EM to run. Tribe::EM.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tribe_em-0.0.1 | lib/tribe_em.rb |