---
title: MPSGraphScheduledHandler
framework: metalperformanceshadersgraph
role: symbol
role_heading: Type Alias
path: metalperformanceshadersgraph/mpsgraphscheduledhandler
---

# MPSGraphScheduledHandler

A notification that appears when graph execution schedules.

## Declaration

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

## Parameters

- `resultsDictionary`: If no error, the results dictionary produced by the graph operation. If Graph has not yet allocated, the results will be NSNull.
- `error`: If an error occurs, more information might be found here.
