---
title: "AsyncThrowingStream.Continuation.YieldResult.enqueued(remaining:)"
framework: swift
role: symbol
role_heading: Case
path: "swift/asyncthrowingstream/continuation/yieldresult/enqueued(remaining:)"
---

# AsyncThrowingStream.Continuation.YieldResult.enqueued(remaining:)

The stream successfully enqueued the element.

## Declaration

```swift
case enqueued(remaining: Int)
```

## Discussion

Discussion This value represents the successful enqueueing of an element, whether the stream buffers the element or delivers it immediately to a pending call to next(). The associated value remaining is a hint that indicates the number of remaining slots in the buffer at the time of the yield call. note: From a thread safety perspective, remaining is a lower bound on the number of remaining slots. This is because a subsequent call that uses the remaining value could race on the consumption of values from the stream.

## See Also

### Yield Results

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