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

# Deferred

A publisher that awaits subscription before running the supplied closure to create a publisher for the new subscriber.

```
struct Deferred<DeferredPublisher> where DeferredPublisher : Publisher
```

## Topics

### Creating a deferred publisher

[`init(createPublisher:)`](/documentation/Combine/Deferred/init(createPublisher:))

Creates a deferred publisher.

### Declaring supporting types

[`Deferred.Output`](/documentation/Combine/Deferred/Output)

The kind of values published by this publisher.

[`Deferred.Failure`](/documentation/Combine/Deferred/Failure)

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`createPublisher`](/documentation/Combine/Deferred/createPublisher)

The closure to execute when this deferred publisher receives a subscription.



---

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)