---
title: "init(completeImmediately:outputType:failureType:)"
framework: combine
role: symbol
role_heading: Initializer
path: "combine/empty/init(completeimmediately:outputtype:failuretype:)"
---

# init(completeImmediately:outputType:failureType:)

Creates an empty publisher with the given completion behavior and output and failure types.

## Declaration

```swift
init(completeImmediately: Bool = true, outputType: Output.Type, failureType: Failure.Type)
```

## Parameters

- `completeImmediately`: A Boolean value that indicates whether the publisher should immediately finish.
- `outputType`: The output type exposed by this publisher.
- `failureType`: The failure type exposed by this publisher.

## Discussion

Discussion Use this initializer to connect the empty publisher to subscribers or other publishers that have specific output and failure types.

## See Also

### Creating an empty publisher

- [init(completeImmediately:)](combine/empty/init(completeimmediately:).md)
