---
title: AsyncThrowingStream.Continuation.Termination
framework: swift
role: symbol
role_heading: Enumeration
path: swift/asyncthrowingstream/continuation/termination
---

# AsyncThrowingStream.Continuation.Termination

A type that indicates how the stream terminated.

## Declaration

```swift
enum Termination
```

## Overview

Overview The onTermination closure receives an instance of this type.

## Topics

### Termination States

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

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Handling Termination

- [onTermination](swift/asyncthrowingstream/continuation/ontermination.md)
