function setUpReadable(stream, deserialize) {
  stream.deserialize = common.wrapIgnoreNull(deserialize);
  stream.finished = false;
  stream.reading = false;

  stream.terminate = function() {
    stream.finished = true;
    stream.on('data', function() {});
  };

  stream.on('cancelled', function() {
    stream.terminate();
  });
}
function setUpReadable(stream, deserialize) {
  stream.deserialize = common.wrapIgnoreNull(deserialize);
  stream.finished = false;
  stream.reading = false;

  stream.terminate = function() {
    stream.finished = true;
    stream.on('data', function() {});
  };

  stream.on('cancelled', function() {
    stream.terminate();
  });
}
function setUpReadable ( stream , deserialize ) { stream . deserialize = common . wrapIgnoreNull ( deserialize ) ; stream . finished = false ; stream . reading = false ; stream . terminate = function ( ) { stream . finished = true ; stream . on ( 'data' , function ( ) { } ) ; } ; stream . on ( 'cancelled' , function ( ) { stream . terminate ( ) ; } ) ; }
Initialize a readable stream. This is used for both the readable and duplex
stream constructors.
@private
@param {Readable} stream The stream to initialize
@param {grpc~deserialize} deserialize Deserialization function for
incoming data.
Initialize a readable stream . This is used for both the readable and duplex stream constructors .
Set up the readable stream