Class: Rinda::WaitTemplateEntry (Ruby 2.7.3)
Description: Class : Rinda::WaitTemplateEntry - Ruby 2.7.3

### Home Classes Methods

### In Files

- rinda/tuplespace.rb

### Parent

Rinda::TemplateEntry

### Methods

- ::new
- #cancel
- #read
- #signal
- #wait

### Class/Module Index

Quicksearch

- Rinda
- Rinda::DRbObjectTemplate
- Rinda::InvalidHashTupleKey
- Rinda::NotifyTemplateEntry
- Rinda::RequestCanceledError
- Rinda::RequestExpiredError
- Rinda::RindaError
- Rinda::RingFinger
- Rinda::RingProvider
- Rinda::RingServer
- Rinda::SimpleRenewer
- Rinda::Template
- Rinda::TemplateEntry
- Rinda::Tuple
- Rinda::TupleBag
- Rinda::TupleBag::TupleBin
- Rinda::TupleEntry
- Rinda::TupleSpace
- Rinda::TupleSpaceProxy
- Rinda::WaitTemplateEntry

No matching classes.

# Rinda::WaitTemplateEntry

Documentation?

### Attributes

found[R]

### Public Class Methods

new(place, ary, expires=nil) click to toggle source

                   # File rinda/tuplespace.rb, line 186
    def initialize(place, ary, expires=nil)
      super(ary, expires)
      @place = place
      @cond = place.new_cond
      @found = nil
    end

### Public Instance Methods

cancel() click to toggle source

                   # File rinda/tuplespace.rb, line 193
    def cancel
      super
      signal
    end

read(tuple) click to toggle source

                   # File rinda/tuplespace.rb, line 202
    def read(tuple)
      @found = tuple
      signal
    end

signal() click to toggle source

                   # File rinda/tuplespace.rb, line 207
    def signal
      @place.synchronize do
        @cond.signal
      end
    end

wait() click to toggle source

                   # File rinda/tuplespace.rb, line 198
    def wait
      @cond.wait
    end