# spinLoop

`import { spinLoop } from "destack:hint";`

Signal that execution is inside a short busy-wait loop.

Longer waits should stop spinning and use a blocking synchronization operation.

```
while (!ready.load()) {
    spinLoop();
}
```

```ds title="spinLoop"
export declare function spinLoop(): void
```

[language/library/src/hint/hint.ds:21](https://github.com/destack-sh/destack/blob/main/language/library/src/hint/hint.ds#L21)
