---
title: "wait(for:value:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/realityrenderer/metaleventaction/wait(for:value:)"
---

# wait(for:value:)

Returns an action that represents waiting for an event to reach the value.

## Declaration

```swift
static func wait(for event: any MTLEvent, value: UInt64) -> RealityRenderer.MetalEventAction
```
