And because `storage.get`/`storage.set` is async, you also couldn't do: ```ts async function applyMi

And because storage.get/storage.set is async, you also couldn't do:
async function applyMigrations(storage: DurableObjectStorage) {
    storage.transactionSync(async () => {
        const currentMigration = await storage.get(...)

        // Do migration stuffs

        await storage.set(...)
    })
}

Because just like the same problem above,
await
puts continuation in the next event loop, by which point transactionSync already exited.
Was this page helpful?