Continuing a part of the discussion on What are the pain points of deploying Swift on Server applications?, I would like to ask if there are ideas of how a program could recover from (certain) “crashes”, and specifically if (quote from the referenced topic) “the safety guarantees to prevent data conflicts in parallel code that came with Swift 6 could help isolate at least some (or all?) of these fatal errors in concurrent contexts.”
Example for such a crash (in a server application):
Remarks: 1) A solution using distributed actors (cf. this discussion) is not meant here.
2) An overview on “dangerous” statements that could lead to a crash see there.