Sha256: f46f299d54a2e76b6ba1da6857e9790d3a14d9f2969fb3d9ae79fd2a380340e9
Contents?: true
Size: 861 Bytes
Versions: 6
Compression:
Stored size: 861 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/rpcs' require 'grpc_kit/calls/client_bidi_streamer' module GrpcKit module Rpcs::Client class BidiStreamer < GrpcKit::Rpcs::ClientRpc # @param stream [GrpcKit::Stream::ClientStream] # @param _requests [Object] it's for compatibility, no use # @param metadata [Hash<String, String>] # @param timeout [GrpcKit::GrpcTime] # @return [GrpcKit::Calls::Client::BidiStreamer] def invoke(stream, _requests, metadata: {}, timeout: nil) call = GrpcKit::Calls::Client::BidiStreamer.new( metadata: metadata, config: @config, timeout: timeout, stream: stream, ) if @config.interceptor @config.interceptor.intercept(call, metadata) { |s| s } else call end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems