Method: Mutant::Variable#read

Defined in:
lib/mutant/variable.rb

#readObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Read value, block on empty

Returns:

  • (Object)

    the variable value



122
123
124
125
126
127
# File 'lib/mutant/variable.rb', line 122

def read
  synchronize do
    wait_full
    @value
  end
end