---
title: "init(receiveCompletion:receiveValue:)"
framework: combine
role: symbol
role_heading: Initializer
path: "combine/subscribers/sink/init(receivecompletion:receivevalue:)"
---

# init(receiveCompletion:receiveValue:)

Initializes a sink with the provided closures.

## Declaration

```swift
init(receiveCompletion: @escaping (Subscribers.Completion<Failure>) -> Void, receiveValue: @escaping (Input) -> Void)
```

## Parameters

- `receiveCompletion`: The closure to execute on completion.
- `receiveValue`: The closure to execute on receipt of a value.
