3 pages for clock.sleep.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Use the mods API
Claude Code CLI · in the page
plugins/mods/api
…nt waiting on `next` or on a mods API call doesn't count, except a `$.clock.sleep`. `$.clock.every` and `$.clock.after` take the place of `setInterval` and `setTimeout`, with the delay in milliseconds…
Mods reference
Claude Code CLI · in the page
plugins/mods/reference
…ent, not counting time inside `next` or a mods API call other than `$.clock.sleep` | 10 seconds, or 50 milliseconds for a `prompt.edit` hook | | A `.catch` handler's execution time | 1 second | | All…
Test a mod
Claude Code CLI · in the page
plugins/mods/test
…zero-delay `$.clock.after` calls, without moving the time | | `await clock.sleep(2000)` | Inside a stub, makes that stub answer only once the test has advanced that far, which is how you simulate a s…