Skip to content
Sections
>> Trisquel >> 套件 >> aramo >> ruby >> ruby-nio4r
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: ruby-nio4r  ]

套件: ruby-nio4r (2.5.8-2)

Ruby library providing a selector API for monitoring IO objects

nio4r (New IO for Ruby) 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.

其他與 ruby-nio4r 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: libc6 (>= 2.33)
    GNU C Library: Shared libraries
    同時作為一個虛擬套件由這些套件提供: libc6-udeb
  • dep: libruby3.0 (>= 3.0.0~preview1)
    Libraries necessary to run Ruby 3.0
  • dep: ruby (<< 1:3.1~)
    Interpreter of object-oriented scripting language Ruby (default version)
    dep: ruby (>= 1:3.0~0)

下載 ruby-nio4r

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
amd64 116.2 kB472 kB [文件列表]
arm64 114.5 kB459 kB [文件列表]
armhf 109.0 kB431 kB [文件列表]
ppc64el 119.8 kB575 kB [文件列表]