---
title: "VTDecompressionSessionWaitForAsynchronousFrames(_:)"
framework: videotoolbox
role: symbol
role_heading: Function
path: "videotoolbox/vtdecompressionsessionwaitforasynchronousframes(_:)"
---

# VTDecompressionSessionWaitForAsynchronousFrames(_:)

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

## Declaration

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

## Parameters

- `session`: The decompression session.

## Return Value

Return Value An OSStatus value that indicates the result of the operation.

## Discussion

Discussion This function automatically calls VTDecompressionSessionFinishDelayedFrames(_:),  so clients don’t have to call both.

## See Also

### Decoding Frames

- [VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)](videotoolbox/vtdecompressionsessioncanacceptformatdescription(_:formatdescription:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameRefcon:infoFlagsOut:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:framerefcon:infoflagsout:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameOptions:frameRefcon:infoFlagsOut:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:frameoptions:framerefcon:infoflagsout:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:infoFlagsOut:outputHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:infoflagsout:outputhandler:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameOptions:infoFlagsOut:outputHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:frameoptions:infoflagsout:outputhandler:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:infoFlagsOut:completionHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:infoflagsout:completionhandler:).md)
- [VTDecompressionSessionFinishDelayedFrames(_:)](videotoolbox/vtdecompressionsessionfinishdelayedframes(_:).md)
- [VTDecompressionSessionCopyBlackPixelBuffer(_:pixelBufferOut:)](videotoolbox/vtdecompressionsessioncopyblackpixelbuffer(_:pixelbufferout:).md)
