End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Rinda::TupleEntry.new
new(ary, sec=nil)
lib/rinda/tuplespace.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rinda/tuplespace.rb, line 26
def initialize(ary, sec=nil)
@cancel = false
@expires = nil
@tuple = make_tuple(ary)
@renewer = nil
renew(sec)
end
Creates a TupleEntry based on ary with an optional renewer or expiry time sec.
A renewer must implement the renew method which returns a Numeric, nil, or true to indicate when the tuple has expired.