You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: consumer_group_spec.rb
    path of file: ./repos/ruby-kafka/spec/fuzz
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

describe "Consumer groups", fuzz: true do
    
  def start_consumer(group_id, result_queue)
    thread = Thread.new do
      kafka = Kafka.new(
        kafka_brokers,
        logger: logger,
        socket_timeout: 20,
        connect_timeout: 20,
      )

      consumer = kafka.consumer(group_id: group_id, session_timeout: 30, offset_retention_time: 300)
      consumer.subscribe(topic)

      consumer.each_message do |message|
        sleep 0.1 # simulate work
        result_queue << Integer(message.value)
      end
    end

    thread.abort_on_exception = true

    thread
  end