<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCGraphCompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:@T@MLCGraphCompletionHandler"
  },
  "title" : "MLCGraphCompletionHandler"
}
-->

# MLCGraphCompletionHandler

A callback completion handler you execute when a graph finishes execution.

```
typealias MLCGraphCompletionHandler = (MLCTensor?, (any Error)?, TimeInterval) -> Void
```

## Parameters

`resultTensor`

The result tensor.

`error`

An error if one occured, otherwise `nil`.

`executionTime`

The execution time.

## Discussion

---

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)