src/client/pfs.go
func (w *PutObjectWriteCloserAsync) Close() error {
	w.writeChan <- w.buf
	close(w.writeChan)
	err := <-w.errChan
	if err != nil {
		return grpcutil.ScrubGRPC(err)
	}
	w.object, err = w.client.CloseAndRecv()
	return grpcutil.ScrubGRPC(err)
}
func (w *PutObjectWriteCloserAsync) Close() error {
	w.writeChan <- w.buf
	close(w.writeChan)
	err := <-w.errChan
	if err != nil {
		return grpcutil.ScrubGRPC(err)
	}
	w.object, err = w.client.CloseAndRecv()
	return grpcutil.ScrubGRPC(err)
}
func ( w * PutObjectWriteCloserAsync ) Close ( ) error { w . writeChan <- w . buf close ( w . writeChan ) err := <- w . errChan if err != nil { return grpcutil . ScrubGRPC ( err ) } w . object , err = w . client . CloseAndRecv ( ) return grpcutil . ScrubGRPC ( err ) }
// Close closes the writer.
Close closes the writer .