<!--
{
  "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/Publishers/IgnoreOutput",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO12IgnoreOutputV"
  },
  "title" : "Publishers.IgnoreOutput"
}
-->

# Publishers.IgnoreOutput

A publisher that ignores all upstream elements, but passes along the upstream publisher’s completion state (finished or failed).

```
struct IgnoreOutput<Upstream> where Upstream : Publisher
```

## Topics

### Creating an ignore output publisher

[`init(upstream:)`](/documentation/Combine/Publishers/IgnoreOutput/init(upstream:))

Creates a publisher that ignores all upstream elements, but passes along the upstream publisher’s completion state (finish or failed).

### Declaring supporting types

[`Publishers.IgnoreOutput.Output`](/documentation/Combine/Publishers/IgnoreOutput/Output)

The kind of values published by this publisher.

[`Publishers.IgnoreOutput.Failure`](/documentation/Combine/Publishers/IgnoreOutput/Failure)

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`upstream`](/documentation/Combine/Publishers/IgnoreOutput/upstream)

The publisher from which this publisher receives elements.

### Comparing publishers

[`==(_:_:)`](/documentation/Combine/Publishers/IgnoreOutput/==(_:_:))

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)