OpenTimeout
, a subclass of Timeout::Error
, is raised if a connection cannot be created within the open_timeout.
ReadTimeout
, a subclass of Timeout::Error
, is raised if a chunk of the response cannot be read within the read_timeout.
Hash
with completion search feature. See OptionParser::Completion
.
Base class of exceptions from OptionParser
.
An implementation of PseudoPrimeGenerator
which uses a prime table generated by trial division.
Internal use. An implementation of prime table by trial division method.
Indicates a timeout resolving a name or address.
A parent has children, and has methods for accessing them. The Parent
class is never encountered except as the superclass for some other object.
A NotifyTemplateEntry
is returned by TupleSpace#notify
and is notified of TupleSpace
changes. You may receive either your subscribed event or the ‘close’ event when iterating over notifications.
See TupleSpace#notify_event
for valid notification types.
ts = Rinda::TupleSpace.new observer = ts.notify 'write', [nil] Thread.start do observer.each { |t| p t } end 3.times { |i| ts.write [i] }
Outputs:
['write', [0]] ['write', [1]] ['write', [2]]