---
title: "AsyncThrowingStream.Continuation.Termination.finished(_:)"
framework: swift
role: symbol
role_heading: Case
path: "swift/asyncthrowingstream/continuation/termination/finished(_:)"
---

# AsyncThrowingStream.Continuation.Termination.finished(_:)

The stream finished as a result of calling the continuation’s finish method.

## Declaration

```swift
case finished(Failure?)
```

## Discussion

Discussion The associated Failure value provides the error that terminated the stream. If no error occurred, this value is nil.

## See Also

### Termination States

- [AsyncThrowingStream.Continuation.Termination.cancelled](swift/asyncthrowingstream/continuation/termination/cancelled.md)
