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

# Just

A publisher that emits an output to each subscriber just once, and then finishes.

```
struct Just<Output>
```

## Overview

You can use a [`Just`](/documentation/Combine/Just) publisher to start a chain of publishers. A [`Just`](/documentation/Combine/Just) publisher is also useful when replacing a value with [`Publishers.Catch`](/documentation/Combine/Publishers/Catch).

In contrast with <doc://com.apple.documentation/documentation/Swift/Result/Publisher-swift.struct>, a [`Just`](/documentation/Combine/Just) publisher can’t fail with an error. And unlike <doc://com.apple.documentation/documentation/Swift/Optional/Publisher-swift.struct>, a [`Just`](/documentation/Combine/Just) publisher always produces a value.

## Topics

### Creating a just ublisher

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

Initializes a publisher that emits the specified output just once.

### Inspecting publisher properties

[`output`](/documentation/Combine/Just/output)

The one element that the publisher emits.

### Comparing publishers

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

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

### Applying operators

[Publisher Operators](/documentation/Combine/Just-Publisher-Operators)

Methods that create downstream publishers or subscribers to act on the elements they receive.



---

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)