> Configures the Durable Object so that the next time it restarts, it should restore its storage to
Configures the Durable Object so that the next time it restarts, it should restore its storage to exactly match what the storage contained at the given bookmark. After calling this, the application should typically invoke ctx.abort() to restart the Durable Object, thus completing the point-in-time recovery.
As the docs say,
onNextSessionRestoreBookmark works on the next restart, so you need to kill the DO for the restore to happen.As mentioned multiple times, I suggest you always
await explicitly any async operation. The example there probably depends on implicit transactions, but just await in your code to be able to reason about things.
