src/ruby/lib/grpc/generic/bidi_call.rb
# performs a read using @call.run_batch, ensures metadata is set up
performs a read using @call.run_batch, ensures metadata is set up
performs a read using @call . run_batch ensures metadata is set up
def read_using_run_batch
      ops = { RECV_MESSAGE => nil }
      ops[RECV_INITIAL_METADATA] = nil unless @metadata_received
      batch_result = @call.run_batch(ops)
      unless @metadata_received
        @call.metadata = batch_result.metadata
        @metadata_received = true
      end
      batch_result
    end
def read_using_run_batch ops = { RECV_MESSAGE => nil } ops [ RECV_INITIAL_METADATA ] = nil unless @metadata_received batch_result = @call . run_batch ( ops ) unless @metadata_received @call . metadata = batch_result . metadata @metadata_received = true end batch_result end
performs a read using @call.run_batch, ensures metadata is set up
performs a read using @call . run_batch ensures metadata is set up