In the callback we might need to await a transaction to make sure everything happens in the correct order.
For example porting the example of the "Structuring the database" section of MDN's guide is currently not possible.
They recommend to wait for the createObjectStore transaction to be completed before adding data in it. In Rust code that requires turning the transaction into a future.
In the callback we might need to
awaita transaction to make sure everything happens in the correct order.For example porting the example of the "Structuring the database" section of MDN's guide is currently not possible.
They recommend to wait for the
createObjectStoretransaction to be completed before adding data in it. In Rust code that requires turning the transaction into a future.