Skip to content

Functions that survive restarts.

Your worker can stop. Your work doesn’t have to. Resonate records completed steps so a new worker can continue the same execution.
Echo floats above a signal made of blocks.
The worker is temporary.The execution continues.

Your code. With a memory.

Keep the loops and branches you already know. Wrap a step to record its result. Use a durable sleep between ticks.

Inside countdown.ts
for (let i = count; i > 0; i--) {
yield* context.run((context: Context) => console.log(`Countdown: ${i}`));
yield* context.sleep(delay * 1000);
}

Give your function a second life.

Run the countdown in TypeScript, Python, Rust, Go, or Java.

Run the quickstart