packages/grpc-native-core/src/client.js
function _readsDone(status) {
  /* jshint validthis: true */
  if (!status) {
    status = {code: constants.status.OK, details: 'OK'};
  }
  if (status.code !== constants.status.OK) {
    this.call.cancelWithStatus(status.code, status.details);
  }
  this.finished = true;
  this.read_status = status;
  this._emitStatusIfDone();
}
function _readsDone(status) {
  /* jshint validthis: true */
  if (!status) {
    status = {code: constants.status.OK, details: 'OK'};
  }
  if (status.code !== constants.status.OK) {
    this.call.cancelWithStatus(status.code, status.details);
  }
  this.finished = true;
  this.read_status = status;
  this._emitStatusIfDone();
}
function _readsDone ( status ) { /* jshint validthis: true */ if ( ! status ) { status = { code : constants . status . OK , details : 'OK' } ; } if ( status . code !== constants . status . OK ) { this . call . cancelWithStatus ( status . code , status . details ) ; } this . finished = true ; this . read_status = status ; this . _emitStatusIfDone ( ) ; }
Called when all messages from the server have been processed. The status
parameter indicates that the call should end with that status. status
defaults to OK if not provided.
@param {Object!} status The status that the call should end with
@private
Called when all messages from the server have been processed . The status parameter indicates that the call should end with that status . status defaults to OK if not provided .