---
title: pause()
framework: foveatedstreaming
role: symbol
role_heading: Instance Method
path: foveatedstreaming/foveatedstreamingsession/pause()
---

# pause()

Pauses a session without ending it.

## Declaration

```swift
@MainActor final func pause() async throws
```

## Discussion

Discussion note: A FoveatedStreamingSession.DisconnectReason error if a disconnection occurs.  Or, a CancellationError if the task is cancelled. When this function returns successfully without throwing an error the foveated streaming session’s status will equal FoveatedStreamingSession.Status.paused. You can resume the session by calling resume().
