---
title: Publishers.PrefixUntilOutput
framework: combine
role: symbol
role_heading: Structure
path: combine/publishers/prefixuntiloutput
---

# Publishers.PrefixUntilOutput

A publisher that republishes elements until another publisher emits an element.

## Declaration

```swift
struct PrefixUntilOutput<Upstream, Other> where Upstream : Publisher, Other : Publisher
```

## Topics

### Creating a prefix until output publisher

- [init(upstream:other:)](combine/publishers/prefixuntiloutput/init(upstream:other:).md)

### Declaring supporting types

- [Publishers.PrefixUntilOutput.Output](combine/publishers/prefixuntiloutput/output.md)
- [Publishers.PrefixUntilOutput.Failure](combine/publishers/prefixuntiloutput/failure.md)

### Inspecting publisher properties

- [upstream](combine/publishers/prefixuntiloutput/upstream.md)
- [other](combine/publishers/prefixuntiloutput/other.md)

## Relationships

### Conforms To

- [Publisher](combine/publisher.md)

## See Also

### Applying sequence operations to elements

- [Publishers.DropUntilOutput](combine/publishers/dropuntiloutput.md)
- [Publishers.Drop](combine/publishers/drop.md)
- [Publishers.DropWhile](combine/publishers/dropwhile.md)
- [Publishers.TryDropWhile](combine/publishers/trydropwhile.md)
- [Publishers.Concatenate](combine/publishers/concatenate.md)
- [Publishers.PrefixWhile](combine/publishers/prefixwhile.md)
- [Publishers.TryPrefixWhile](combine/publishers/tryprefixwhile.md)
