<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTDecompressionSessionWaitForAsynchronousFrames(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTDecompressionSessionWaitForAsynchronousFrames"
  },
  "title" : "VTDecompressionSessionWaitForAsynchronousFrames(_:)"
}
-->

# VTDecompressionSessionWaitForAsynchronousFrames(_:)

Waits for any and all outstanding asynchronous and delayed frames to complete, then returns.

```
func VTDecompressionSessionWaitForAsynchronousFrames(_ session: VTDecompressionSession) -> OSStatus
```

## Parameters

`session`

The decompression session.

## Return Value

An `OSStatus` value that indicates the result of the operation.

## Discussion

This function automatically calls [`VTDecompressionSessionFinishDelayedFrames(_:)`](/documentation/VideoToolbox/VTDecompressionSessionFinishDelayedFrames(_:)),  so clients don’t have to call both.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)