---
title: "receive(_:)"
framework: combine
role: symbol
role_heading: Instance Method
path: "combine/subscribers/assign/receive(_:)"
---

# receive(_:)

Tells the subscriber that the publisher has produced an element.

## Declaration

```swift
final func receive(_ value: Input) -> Subscribers.Demand
```

## Discussion

Discussion A Subscribers.Demand instance indicating how many more elements the subscriber expects to receive.
