Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Rinda::TupleEntry#renew
renew(sec_or_renewer)
lib/rinda/tuplespace.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rinda/tuplespace.rb, line 84
def renew(sec_or_renewer)
sec, @renewer = get_renewer(sec_or_renewer)
@expires = make_expires(sec)
end
Reset the expiry time according to sec_or_renewer.
nil-
it is set to expire in the far future.
true-
it has expired.
Numeric-
it will expire in that many seconds.
Otherwise the argument refers to some kind of renewer object which will reset its expiry time.