---
title: Publishers.TryDropWhile
framework: combine
role: symbol
role_heading: Structure
path: combine/publishers/trydropwhile
---

# Publishers.TryDropWhile

A publisher that omits elements from an upstream publisher until a given error-throwing closure returns false.

## Declaration

```swift
struct TryDropWhile<Upstream> where Upstream : Publisher
```

## Topics

### Creating a try-drop-while publisher

- [init(upstream:predicate:)](combine/publishers/trydropwhile/init(upstream:predicate:).md)

### Declaring supporting types

- [Publishers.TryDropWhile.Output](combine/publishers/trydropwhile/output.md)
- [Publishers.TryDropWhile.Failure](combine/publishers/trydropwhile/failure.md)

### Inspecting publisher properties

- [upstream](combine/publishers/trydropwhile/upstream.md)
- [predicate](combine/publishers/trydropwhile/predicate.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.Concatenate](combine/publishers/concatenate.md)
- [Publishers.PrefixWhile](combine/publishers/prefixwhile.md)
- [Publishers.TryPrefixWhile](combine/publishers/tryprefixwhile.md)
- [Publishers.PrefixUntilOutput](combine/publishers/prefixuntiloutput.md)
