> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# subflows/sleep.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/subflows/sleep.yaml)

```yaml
appId: ${APP_ID}
---
# Waits ${MS} ms. Maestro has no sleep, and `waitForAnimationToEnd` returns as soon as the screen is
# still: wait for an element that is never there, `optional` so running the clock out is not a failure.
- extendedWaitUntil:
    visible:
      id: "no-such-element"
    timeout: ${MS}
    optional: true
```
