How to use the @google-cloud/common.util.promisifyAll function in @google-cloud/common

To help you get started, we’ve selected a few @google-cloud/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github firebase / user-privacy / functions / node_modules / @google-cloud / common-grpc / src / service-object.js View on Github external
/**
 * Patch a writable streaming request to the GrpcService object.
 *
 * @private
 */
GrpcServiceObject.prototype.requestWritableStream = function() {
  return this.parent.requestWritableStream.apply(this.parent, arguments);
};

/*! Developer Documentation
 *
 * All async methods (except for streams) will return a Promise in the event
 * that a callback is omitted.
 */
util.promisifyAll(GrpcServiceObject);

module.exports = GrpcServiceObject;
github googleapis / google-cloud-node / packages / common-grpc / src / service-object.js View on Github external
/**
 * Patch a writable streaming request to the GrpcService object.
 *
 * @private
 */
GrpcServiceObject.prototype.requestWritableStream = function() {
  return this.parent.requestWritableStream.apply(this.parent, arguments);
};

/*! Developer Documentation
 *
 * All async methods (except for streams) will return a Promise in the event
 * that a callback is omitted.
 */
util.promisifyAll(GrpcServiceObject);


module.exports = GrpcServiceObject;