---
title: Just
framework: combine
role: symbol
role_heading: Structure
path: combine/just
---

# Just

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

## Declaration

```swift
struct Just<Output>
```

## Overview

Overview You can use a Just publisher to start a chain of publishers. A Just publisher is also useful when replacing a value with Publishers.Catch. In contrast with Result.Publisher, a Just publisher can’t fail with an error. And unlike Optional.Publisher, a Just publisher always produces a value.

## Topics

### Creating a just ublisher

- [init(_:)](combine/just/init(_:).md)

### Inspecting publisher properties

- [output](combine/just/output.md)

### Comparing publishers

- [==(_:_:)](combine/just/==(_:_:).md)

### Applying operators

- [Publisher Operators](combine/just-publisher-operators.md)

### Default Implementations

- [Equatable Implementations](combine/just/equatable-implementations.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Publisher](combine/publisher.md)

## See Also

### Convenience Publishers

- [Future](combine/future.md)
- [Deferred](combine/deferred.md)
- [Empty](combine/empty.md)
- [Fail](combine/fail.md)
- [Record](combine/record.md)
