---
title: AsyncThrowingStream.Continuation.YieldResult.terminated
framework: swift
role: symbol
role_heading: Case
path: swift/asyncthrowingstream/continuation/yieldresult/terminated
---

# AsyncThrowingStream.Continuation.YieldResult.terminated

The stream didn’t enqueue the element because the stream was in a terminal state.

## Declaration

```swift
case terminated
```

## Discussion

Discussion This indicates the stream terminated prior to calling yield, either because the stream finished normally or through cancellation, or it threw an error.

## See Also

### Yield Results

- [AsyncThrowingStream.Continuation.YieldResult.enqueued(remaining:)](swift/asyncthrowingstream/continuation/yieldresult/enqueued(remaining:).md)
- [AsyncThrowingStream.Continuation.YieldResult.dropped(_:)](swift/asyncthrowingstream/continuation/yieldresult/dropped(_:).md)
