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

# Publishers.MergeMany

A publisher created by applying the merge function to an arbitrary number of upstream publishers.

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

## Topics

### Creating a merge many publisher

[`init(_:)`](/documentation/Combine/Publishers/MergeMany/init(_:)-1hsqd)

Creates a publisher created by applying the merge function to an arbitrary number of upstream publishers.

[`init(_:)`](/documentation/Combine/Publishers/MergeMany/init(_:)-3hrmo)

Creates a publisher created by applying the merge function to a sequence of upstream publishers.

### Merging elements

[`merge(with:)`](/documentation/Combine/Publishers/MergeMany/merge(with:))

Combines elements from this publisher with those from another publisher of the same type, delivering an interleaved sequence of elements.

### Declaring supporting types

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

The kind of values published by this publisher.

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

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`publishers`](/documentation/Combine/Publishers/MergeMany/publishers)

The array of upstream publishers that this publisher merges together.

### Comparing publishers

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

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)