---
title: "exportAsynchronously(completionHandler:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avassetexportsession/exportasynchronously(completionhandler:)"
---

# exportAsynchronously(completionHandler:)

Starts the asynchronous execution of an export session.

## Declaration

```swift
func exportAsynchronously(completionHandler handler: @escaping @Sendable () -> Void)
```

```swift
func export() async
```

## Parameters

- `handler`: A callback the system invokes when it finishes successfully, or in the event of writing failure.

## See Also

### Exporting media

- [export(to:as:isolation:)](avfoundation/avassetexportsession/export(to:as:isolation:).md)
- [cancelExport()](avfoundation/avassetexportsession/cancelexport().md)
