---
title: "wait(for:value:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraphexecutiondescriptor/wait(for:value:)"
---

# wait(for:value:)

Executable waits on these shared events before scheduling execution on the HW, this does not include encoding which can still continue.

## Declaration

```swift
func wait(for event: any MTLSharedEvent, value: UInt64)
```

## Parameters

- `event`: Shared event graph waits on.
- `value`: Value of shared event graph waits on.
