class Concurrent::IVar

def check_for_block_or_value!(block_given, value) # :nodoc:

:nodoc:
@!visibility private
def check_for_block_or_value!(block_given, value) # :nodoc:
  if (block_given && value != NULL) || (! block_given && value == NULL)
    raise ArgumentError.new('must set with either a value or a block')
  end
end