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

# receive(_:)

Tells the subscriber that the publisher has produced an element.

## Declaration

```swift
func receive(_ input: Self.Input) -> Subscribers.Demand
```

## Parameters

- `input`: The published element.

## Mentioned in

Processing Published Elements with Subscribers

## Return Value

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

## See Also

### Receiving elements

- [receive()](combine/subscriber/receive().md)
