<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/AsyncPublisher",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine14AsyncPublisherV"
  },
  "title" : "AsyncPublisher"
}
-->

# AsyncPublisher

A publisher that exposes its elements as an asynchronous sequence.

```
struct AsyncPublisher<P> where P : Publisher, P.Failure == Never
```

## Overview

`AsyncPublisher` conforms to <doc://com.apple.documentation/documentation/Swift/AsyncSequence>, which allows callers to receive values with the `for`-`await`-`in` syntax, rather than attaching a [`Subscriber`](/documentation/Combine/Subscriber).

Use the [`values`](/documentation/Combine/Publisher/values-1dm9r) property of the [`Publisher`](/documentation/Combine/Publisher) protocol to wrap an existing publisher with an instance of this type.

## Topics

### Creating an asynchronous publisher

[`init(_:)`](/documentation/Combine/AsyncPublisher/init(_:))

Creates a publisher that exposes elements received from an upstream publisher as an asynchronous sequence.

### Creating an iterator

[`makeAsyncIterator()`](/documentation/Combine/AsyncPublisher/makeAsyncIterator())

Creates the asynchronous iterator that produces elements of this asynchronous sequence.

[`AsyncPublisher.Iterator`](/documentation/Combine/AsyncPublisher/Iterator)

The iterator that produces elements of the asynchronous publisher sequence.

### Supporting types

[`AsyncPublisher.Element`](/documentation/Combine/AsyncPublisher/Element)

The type of element produced by this asynchronous sequence.



---

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)