<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFilePromiseProviderDelegate/operationQueue(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSFilePromiseProviderDelegate(im)operationQueueForFilePromiseProvider:"
  },
  "title" : "operationQueue(for:)"
}
-->

# operationQueue(for:)

Returns the operation queue from which to issue the write request.

```
@MainActor optional func operationQueue(for filePromiseProvider: NSFilePromiseProvider) -> OperationQueue
```

## Parameters

`filePromiseProvider`

The file promise provider for the operation queue.

## Discussion

If this method isn’t implemented, the main operation queue is used. Although this method is optional, to avoid blocking your main thread, provide an operation queue other than the main operation queue.

---

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)