<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/RealityRenderer/MetalEventAction/wait(for:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation0A8RendererC16MetalEventActionV4wait3for5valueAESo8MTLEvent_p_s6UInt64VtFZ"
  },
  "title" : "wait(for:value:)"
}
-->

# wait(for:value:)

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)