---
title: WriteCloseAbandoner
summary: WriteCloseAbandoner is an interface returned by cache insert operations. It is an io.WriteCloser that also supports abandoning the stream. When Abandon is called, the insert operation is canceled and content written is not saved into the cache.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/cache/core/interface.WriteCloseAbandoner/
---

**Kind:** Interface  
**Module:** [core](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/cache/core/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/cache/core/core.go#L462

```go
type WriteCloseAbandoner interface {
	io.WriteCloser
	Abandon() error
}
```

Extends `io.WriteCloser`.

WriteCloseAbandoner is an interface returned by cache insert
operations.  It is an [io.WriteCloser](https://pkg.go.dev/io#WriteCloser) that also supports abandoning
the stream.  When Abandon is called, the insert operation is canceled
and content written is not saved into the cache.

## Methods

### Abandon

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/cache/core/core.go#L464

```go
Abandon() error
```

**Returns**

`error`
