---
title: endEncountered
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/stream/event/endencountered
---

# endEncountered

The end of the stream has been reached.

## Declaration

```swift
static var endEncountered: Stream.Event { get }
```

## See Also

### Constants

- [openCompleted](foundation/stream/event/opencompleted.md)
- [hasBytesAvailable](foundation/stream/event/hasbytesavailable.md)
- [hasSpaceAvailable](foundation/stream/event/hasspaceavailable.md)
- [errorOccurred](foundation/stream/event/erroroccurred.md)
