<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/waitUntilRunning()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@F@cp_layer_renderer_wait_until_running"
  },
  "title" : "waitUntilRunning()"
}
-->

# waitUntilRunning()

Stops further execution of your code until the layer renderer leaves the paused state.

```
func waitUntilRunning()
```

## Discussion

Call this function to let the system handle events while you wait for the layer to become ready.
The function services incoming layer-related events until the layer exits the paused state.

---

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)