code: function wait(stream, onEnd) {
  
    waitObj(stream, function (err, data) {
  
      if (err) {
        return onEnd(err);
      }
  
      return onEnd(null, Buffer.concat(data.map(function (item) {
        return new Buffer(item);
      })));
    });
  }
docs: Wait for the contents of a stream.
  
  @private
  @deprecated
  @static
  @since    0.0.1
  @category Consumers
  
  @param    {Stream}    stream - Stream that will be read for this function.
  @param    {Function}  onEnd  - Callback when the stream has been read completely.
  @returns  {undefined}