<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/Empty/init(completeImmediately:outputType:failureType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine5EmptyV19completeImmediately10outputType07failureF0ACyxq_GSb_xmq_mtcfc"
  },
  "title" : "init(completeImmediately:outputType:failureType:)"
}
-->

# init(completeImmediately:outputType:failureType:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)