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

# wait(for:value:)

Waits on these shared events before scheduling execution on the HW.

## Declaration

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

## Parameters

- `event`: Shared event to wait on.
- `value`: Value for shared event to wait on.

## Discussion

Discussion This does not include encoding which can still continue.
