Sha256: 811811630e0594d04450bff75794e849e2346e212cb7ebba5cec25e4a6f524d2

Contents?: true

Size: 468 Bytes

Versions: 6

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2017-2023, by Samuel Williams.

require 'async'

require_relative "io/generic"
require_relative "io/socket"
require_relative "io/version"

require_relative "io/endpoint"
require_relative "io/endpoint/each"

module Async
	module IO
		def self.file_descriptor_limit
			Process.getrlimit(Process::RLIMIT_NOFILE).first
		end
		
		def self.buffer?
			::IO.const_defined?(:Buffer)
		end
	end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
async-io-1.39.0 lib/async/io.rb
async-io-1.38.1 lib/async/io.rb
async-io-1.38.0 lib/async/io.rb
async-io-1.37.0 lib/async/io.rb
async-io-1.36.1 lib/async/io.rb
async-io-1.36.0 lib/async/io.rb