Sha256: 5933db81deb3d02aa9910f890ac84f9f245514da6380f02af3cd3ccb81eb09f7
Contents?: true
Size: 665 Bytes
Versions: 6
Compression:
Stored size: 665 Bytes
Contents
require 'thread' require 'socket' require 'nio/version' # New I/O for Ruby module NIO # NIO implementation, one of the following (as a string): # * select: in pure Ruby using Kernel.select # * libev: as a C extension using libev # * java: using Java NIO def self.engine; ENGINE end end if ENV["NIO4R_PURE"] || (ENV["OS"] =~ /Windows/i && !defined?(JRUBY_VERSION)) require 'nio/monitor' require 'nio/selector' NIO::ENGINE = 'select' else require 'nio4r_ext' if defined?(JRUBY_VERSION) require 'java' require 'jruby' org.nio4r.Nio4r.new.load(JRuby.runtime, false) NIO::ENGINE = 'java' else NIO::ENGINE = 'libev' end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
nio4r-1.0.0-java | lib/nio.rb |
nio4r-1.0.0 | lib/nio.rb |
nio4r-0.5.0-java | lib/nio.rb |
nio4r-0.5.0 | lib/nio.rb |
nio4r-0.4.6-java | lib/nio.rb |
nio4r-0.4.6 | lib/nio.rb |