> ## Documentation Index
> Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# tick

> Declare execution frequency for a @program block

```python theme={null}
from grid_nexus_program import tick
```

Declare execution frequency for a @program block.

Used as `while tick(hz=10):` or `while tick():` inside a @program
function.  The AST compiler extracts the frequency; at local-execution
time the object is truthy so the while loop runs as a blocking loop.
Use `break` to exit the loop.

`tick()` with no arguments means "completion-driven": the loop body
runs once, waits for all nodes to finish, then repeats.

## Constructor

```python Signature theme={null}
tick(hz: float | None = None)
```


## Related topics

- [Your first skill](/get-started/first-skill.md)
