Vala async retry pattern: re-invoking a GError-throwing method without duplicating writes
Goal I have a Vala async method (compiled against Vala 0.44+ / GLib GTask) that performs a write, e.g. appending a record to a file or sending a request. On failure it throws a GError , which the caller catches via try / catch around the yield . I want to retry the operation a bounded number of times, but only when the write provably did not happen, so a ret