<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/AsyncThrowingStream/Continuation/YieldResult/terminated",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Scs12ContinuationV11YieldResultO10terminatedyADyxq___GAFms5ErrorR_r0_lF"
  },
  "title" : "AsyncThrowingStream.Continuation.YieldResult.terminated"
}
-->

# AsyncThrowingStream.Continuation.YieldResult.terminated

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

```
case terminated
```

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)