<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine5EmptyV"
  },
  "title" : "Empty"
}
-->

# Empty

A publisher that never publishes any values, and optionally finishes immediately.

```
struct Empty<Output, Failure> where Failure : Error
```

## Overview

You can create a ”Never” publisher — one which never sends values and never finishes or fails — with the initializer `Empty(completeImmediately: false)`.

## Topics

### Creating an empty publisher

[`init(completeImmediately:)`](/documentation/Combine/Empty/init(completeImmediately:))

Creates an empty publisher.

[`init(completeImmediately:outputType:failureType:)`](/documentation/Combine/Empty/init(completeImmediately:outputType:failureType:))

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

### Inspecting publisher properties

[`completeImmediately`](/documentation/Combine/Empty/completeImmediately)

A Boolean value that indicates whether the publisher immediately sends a completion.

### Comparing publishers

[`==(_:_:)`](/documentation/Combine/Empty/==(_:_:))

Returns a Boolean value that indicates whether two publishers are equivalent.



---

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)