so it's like Workers and the Browser API which lives in a different machine
so it's like Workers and the Browser API which lives in a different machine

10/5/24, 11:50 PM
this.ctx.storage.transactionSync(() => {...})..transactionSync() in the docsBEGIN TRANSACTION, the error message is not helpful, so some people came off thinking we don't support transactions at all. Will get that fixed soon.awaiting it should still succeedgetSync() or something... just changing it would break anyone who is using .then() instead of await.updateAlarm(), which queries your storage to find the next alarm time and then sets the alarm to that. Then you call updateAlarm() whenever you've added a new alarm to your storage, and at the end of an alarm handler.
this.ctx.storage.transactionSync(() => {...}).transactionSync()BEGIN TRANSACTIONgetSync().then()updateAlarm()updateAlarm()