---
title: receiveCancel
framework: combine
role: symbol
role_heading: Instance Property
path: combine/publishers/handleevents/receivecancel
---

# receiveCancel

A closure that executes when the downstream receiver cancels publishing.

## Declaration

```swift
var receiveCancel: (() -> Void)?
```

## See Also

### Inspecting publisher properties

- [upstream](combine/publishers/handleevents/upstream.md)
- [receiveSubscription](combine/publishers/handleevents/receivesubscription.md)
- [receiveOutput](combine/publishers/handleevents/receiveoutput.md)
- [receiveCompletion](combine/publishers/handleevents/receivecompletion.md)
- [receiveRequest](combine/publishers/handleevents/receiverequest.md)
