Registry / networking / eventmachine

eventmachine

JSON →
library1.2.7rbrubygemsunverified

EventMachine implements a fast, single-threaded engine for arbitrary network communications, wrapping IP socket interactions to simplify building network servers and clients.

gem install eventmachine
INSTALL
IMPORT
SIG · EVENTMACHINE
E
eventmachine
networkingrubyv1.2.7
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.

EventMachine
require 'eventmachine'

Run a simple EventMachine reactor loop that prints a message after 1 second.

require 'eventmachine' EM.run do EM.add_timer(1) { puts 'Hello from EventMachine'; EM.stop } end
Debug
Known issues
gotchaEventMachine uses a single-threaded reactor pattern; blocking operations in callbacks will freeze the reactor.
fix
Use EM.defer or EM.system for blocking I/O, or switch to non-blocking operations.
affects: >= 0.0.0
Upgrade
Version history
1.2.7latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
28
OpenAI (training)
1
Resources
eventmachine — gem install eventmachine · libregistry