lib/em-synchrony.rb in em-synchrony-0.1.4 vs lib/em-synchrony.rb in em-synchrony-0.1.5

- old
+ new

@@ -1,17 +1,17 @@ $:.unshift(File.dirname(__FILE__) + '/../lib') -require "rubygems" require "eventmachine" -require "fiber" +begin + require "fiber" +rescue LoadError => error + raise error unless defined? Fiber +end + require "em-synchrony/em-multi" -# require "em-synchrony/iterator" # iterators are not release in EM yet require "em-synchrony/connection_pool" - -require "em-synchrony/em-http" -require "em-synchrony/em-mysql" -require "em-synchrony/em-remcached" +# require "em-synchrony/iterator" # iterators are not release in EM yet module EventMachine # A convenience method for wrapping EM.run body within # a Ruby Fiber such that async operations can be transparently