<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVVideoCompositing/cancelAllPendingVideoCompositionRequests()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVVideoCompositing(im)cancelAllPendingVideoCompositionRequests"
  },
  "title" : "cancelAllPendingVideoCompositionRequests()"
}
-->

# cancelAllPendingVideoCompositionRequests()

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

```
optional func cancelAllPendingVideoCompositionRequests()
```

## Discussion

Upon receiving this message, a custom video compositor must block until it has either cancelled all pending frame requests, and called the [`finishCancelledRequest()`](/documentation/AVFoundation/AVAsynchronousVideoCompositionRequest/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:)`](/documentation/AVFoundation/AVAsynchronousVideoCompositionRequest/finish(withComposedVideoFrame:)) method for each of them.

---

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)