logoalt Hacker News

lelanthranlast Monday at 10:56 PM1 replyview on HN

I had the same question, actually; it is very common to perform multiple point-of-no-return IO in a workflow, so deferring all IO into a specific spot does not, in practice, bring any advantages.


Replies

EGreglast Monday at 11:05 PM

It does. You queue ALL of these side effects (simply tasks whose exceptions don't rollback your own task) until the end. Then you can perform them all, in parallel if you wish.

show 1 reply