---
title: receiveSubscription
framework: combine
role: symbol
role_heading: Instance Property
path: combine/publishers/handleevents/receivesubscription
---

# receiveSubscription

A closure that executes when the publisher receives the subscription from the upstream publisher.

## Declaration

```swift
var receiveSubscription: ((any Subscription) -> Void)?
```

## See Also

### Inspecting publisher properties

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