Registry / networking / nio4r
library2.7.5rbrubygemsunverified

New IO for Ruby - a cross-platform asynchronous I/O library.

gem install nio4r
INSTALL
IMPORT
SIG · NIO4R
N
nio4r
networkingrubyv2.7.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NIO
✓ require 'nio4r'

Set up an event-driven TCP server using nio4r.

require 'nio4r' selector = NIO::Selector.new server = TCPServer.new('localhost', 3000) selector.register(server, :r) loop do selector.select do |monitor| io = monitor.io if io == server client = server.accept selector.register(client, :r) else puts io.gets end end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.7.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
34
Resources
nio4r — gem install nio4r · libregistry