Sha256: cf430844722e868ff4f75661f62ed8aaa6606c5887f82dbc1ac23275527a2d2f

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

require 'grpc_kit'
require 'forwardable'

class CallStream < GrpcKit::Call
  extend Forwardable
  delegate %i[send_msg recv] => :@inner

  # @params call [GrpcKit::Call]
  def initialize(inner)
    @inner = inner
  end

  def method_missing(name, *args, &block)
    @inner.public_send(name, *args, &block)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grpc_kit-0.2.0 examples/interceptors/call_stream.rb