sarvagya agarwal
10/12/2022, 11:10 AMefemoney
10/12/2022, 11:16 AMJoffrey
10/12/2022, 11:17 AMcoroutineScope { ... }
block), and thanks to structured concurrency, you'll get exceptions bubbled up to your try/catch. You can then use the rollback facilities of whatever system you're using in your catch
block, and the commit facilities in the finally
.Joffrey
10/12/2022, 11:19 AMsuspend
function, and then it's back to one operation that can fail. Then perform the commit/rollback as you would with one operation.BobHy
10/28/2022, 4:28 AMcoroutineScope
.