RubyGems Navigation menu

cztop-reactor 0.1.0.pre20170316155217

This is an implementation of the Reactor pattern described in [Pattern-Oriented Software Architecture (Volume 2)][POSA2]. It allows an asynchronous application to be described as one or more "reactions" to events, in this case either I/O conditions on a ZMQ socket or a timer expiring. A simple example: # Start a SERVER socket, and print out any messages sent to it reactor = CZTop::Reactor.new socket = CZTop::Socket::SERVER.new socket.bind( 'tcp://0.0.0.0:8' ) reactor.register( socket, :read ) do |event| if event.readable? message = event.socket.receive puts "Read: %p" % [ message.to_a ] end end reactor.start_polling

Gemfile:
=

安装:
=

版本列表:

  1. 1.0.1 March 13, 2023 (21.0 KB)
  2. 1.0.0 April 27, 2022 (22.0 KB)
  3. 0.9.0 October 09, 2019 (23.5 KB)
  4. 0.8.0 May 22, 2019 (23.0 KB)
  5. 0.7.0 July 24, 2018 (22.0 KB)
  6. 0.1.0.pre20170316155217 March 16, 2017 (14.5 KB)
显示所有版本 (共 14 个)

Runtime 依赖 (3):

cztop ~> 0.11
loggability ~> 0.14
timers ~> 4.1

Development 依赖 (7):

hoe ~> 3.15
hoe-deveiate ~> 0.8
hoe-highline ~> 0.2
hoe-mercurial ~> 1.4
rdoc ~> 4.0
simplecov ~> 0.13

业主:

作者:

  • Michael Granger

SHA 256 校验和:

=

下载总量 24,675

这个版本 1,799

版本发布:

许可:

ISC

需要的 Ruby 版本: >= 2.2.4

需要的 RubyGems 版本: > 1.3.1

链接: