<!--
{
  "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/AsyncStream/Continuation/YieldResult",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:ScS12ContinuationV11YieldResultO"
  },
  "title" : "AsyncStream.Continuation.YieldResult"
}
-->

# AsyncStream.Continuation.YieldResult

A type that indicates the result of yielding a value to a client, by
way of the continuation.

```
enum YieldResult
```

## Overview

The various `yield` methods of `AsyncStream.Continuation` return this
type to indicate the success or failure of yielding an element to the
continuation.

## Topics

### Yield Results

[`case enqueued(remaining: Int)`](/documentation/Swift/AsyncStream/Continuation/YieldResult/enqueued(remaining:))

The stream successfully enqueued the element.

[`case dropped(Element)`](/documentation/Swift/AsyncStream/Continuation/YieldResult/dropped(_:))

The stream didn’t enqueue the element because the buffer was full.

[`case terminated`](/documentation/Swift/AsyncStream/Continuation/YieldResult/terminated)

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

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)