Class: Coolio::Loop
- Inherits:
-
Object
- Object
- Coolio::Loop
- Defined in:
- lib/evented-spec/ext/coolio.rb
Class Method Summary collapse
-
.default_loop=(event_loop) ⇒ Object
Cool.io provides no means to change the default loop which makes sense in most situations, but not ours.
Class Method Details
.default_loop=(event_loop) ⇒ Object
Cool.io provides no means to change the default loop which makes sense in most situations, but not ours.
6 7 8 9 10 11 12 |
# File 'lib/evented-spec/ext/coolio.rb', line 6 def self.default_loop=(event_loop) if RUBY_VERSION >= "1.9.0" Thread.current.instance_variable_set :@_coolio_loop, event_loop else @@_coolio_loop = event_loop end end |