Unfortunately this would not help in my case, since the intend (in the original project) of the _failsafe method is to "recover" from generic server errors and send the original request again. (For various reasons the server I am talking to behaves not as the "normal" REST/HTTP server and there is unfortunately no way to change that.)
I am wondering now if there's something wrong about how I am using async/await/URLSession (except from being used in a very contrived example ;-)? To me it seems I am using them in a "legal' way, but for obvious reasons I am just starting to use async/await in Swift ;-).
Thanks for your help!
Topic:
App & System Services
SubTopic:
Networking
Tags: