Skip to content
Trigora
Start building →

Timers

sleep is a durable timer. The Execution commits a wake time and leaves running.

import { sleep } from "@trigora/sdk";
await sleep(60_000);

Python:

from trigora import sleep
await sleep(60)

While the timer is pending, the public wait is { type: "timer", wakeAt }. The scheduler wakes the Execution at that time. You do not send an event to finish a sleep.

Suspended wall-clock time is not a compute charge. See Usage & billing.

If the process dies before wakeAt, recovery loads the continuation and keeps the same timer. It does not start the delay over from zero.