# Reject\[A: [Any](builtin-Any.md) #share\]
<span class="source-link">[[Source]](src/promises/reject.md#L-0-13)</span>

A function on A that is called when a promise is rejected.


```pony
interface iso Reject[A: Any #share]
```

## Public Functions

### apply
<span class="source-link">[[Source]](src/promises/reject.md#L-0-17)</span>


Produces a value or raises an error on rejection.


```pony
fun ref apply()
: A ?
```

#### Returns

* A ?

---

