BSD Ports

devel/rubygem-nio4r 2.7.5 FreeBSD

Cross-platform asynchronous I/O primitives

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
devel, rubygems
Package size
39.0 KiB, 173.1 KiB installed

Description

nio4r provides an abstract, cross-platform stateful I/O selector API for Ruby. I/O selectors are the heart of "reactor"-based event loops, and monitor multiple I/O objects for various types of readiness, e.g. ready for reading or writing.

The most similar API provided by Ruby today is Kernel.select, however the select API requires you to pass in arrays of all of the I/O objects you're interested in every time. nio4r provides a more object-oriented API that lets you register I/O objects with a selector then handle them when they're selected for various types of events.

nio4r is modeled after the Java NIO API, but simplified for ease-of-use.

Its goals are:

  • Expose high-level interfaces for stateful IO selectors
  • Keep the API small to maximize both portability and performance across many different OSes and Ruby VMs
  • Provide inherently thread-safe facilities for working with IO objects

In the other systems

SystemPortVersion
FreeBSDdevel/rubygem-nio4r2.7.5
DragonFlydevel/rubygem-nio4r2.7.4
MidnightBSDdevel/rubygem-nio4r2.7.5

Install

Binary package:

pkg install rubygem-nio4r

From the ports tree:

cd /usr/ports/devel/rubygem-nio4r/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	rubygem-nio4r>0:devel/rubygem-nio4r

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.7.52.7.52.5.82.7.42.7.5
FreeBSD:14:quarterly2.7.52.7.5n/a2.7.42.7.5
FreeBSD:15:latest2.7.52.7.5n/a2.7.42.7.4
FreeBSD:15:quarterly2.7.52.7.5n/an/an/a
FreeBSD:16:latest2.7.52.7.5n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 6
Run dependencies 6
Required by 61

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/nio4r-2.7.5.gem1167366c90168e48fb5f8e768419c93abb94ba2b892a1d0602cb06eef16d8b7df1dca1
Master sites 1
  • RG

Commit history 0

No commits in the history this site was built from.