When using atomicState, if you perform a write, does it return after the update to persistent storage is finished? Or can it can possibly return before an update to persistence storage (Is the write() call to the database synchronous or asynchronous?)? In the diagrams found in the ST architecture documentation, it looks as if execution can proceed without the write call to return.

Put in other words is that what happens: write()-> issue request to persistence storage-> return while persistence storage update is in-progress?