Liked Carlana Johnson :v_trans:​ (@carlana@tech.lgbt)
Post details
In response to @cadey@pony.social's blog post about wanting retry loops in #Golang, I wrote terrible hack using using the proposed iterator syntax. https://go.dev/play/?v=gotip var err error for range backoff(&err, 1 * time.Second) { if err = something1(); err != nil { continue } if err = something2() ; err != nil { continue } }

This post was filed under likes.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.