---
title: MPSGraphCompletionHandler
framework: metalperformanceshadersgraph
role: symbol
role_heading: Type Alias
path: metalperformanceshadersgraph/mpsgraphcompletionhandler
---

# MPSGraphCompletionHandler

A notification that appears when graph execution finishes.

## Declaration

```swift
typealias MPSGraphCompletionHandler = ([MPSGraphTensor : MPSGraphTensorData], (any Error)?) -> Void
```

## Parameters

- `resultsDictionary`: If no error, the results dictionary produced by the graph operation.
- `error`: If an error occurs, more information might be found here.
