Early return from a loop in a task expression (CE)
I’d like to implement a retry utility for TPL-Tasks in F#, for retrying things like HttpClient.GetAsync(…). Specification: it will retry a given task-starting function up to n times by swallowing any exceptions that might be thrown. But for the last iteration, it should propagate any exceptions to the caller rather than swallowing it (with a… Read More Early return from a loop in a task expression (CE)