---
title: cancelAllPendingVideoCompositionRequests()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avvideocompositing/cancelallpendingvideocompositionrequests()
---

# cancelAllPendingVideoCompositionRequests()

Directs a custom video compositor object to cancel or finish all pending video composition requests.

## Declaration

```swift
optional func cancelAllPendingVideoCompositionRequests()
```

## Discussion

Discussion Upon receiving this message, a custom video compositor must block until it has either cancelled all pending frame requests, and called the finishCancelledRequest() method for each of them. If cancellation is not possible, the method must block until it has finished processing of all the frames and called the finish(withComposedVideoFrame:) method for each of them.

## See Also

### Rendering the composition

- [startRequest(_:)](avfoundation/avvideocompositing/startrequest(_:).md)
- [AVAsynchronousVideoCompositionRequest](avfoundation/avasynchronousvideocompositionrequest.md)
