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

# AsyncStream.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.

## See Also

### Yield Results

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