4 ms·
You might be interested by something that has been designed specifically for this problem. I created a state machine library for Go on top of which I mapped ret
by mariusor 2y ago
You might be interested by something that has been designed specifically for this problem. I created a state machine library for Go on top of which I mapped retry[1] and some other patterns. And funnily enough one of the first applications I implemented is an RSS reader[2]
[1] https://pkg.go.dev/git.sr.ht/~mariusor/ssm#example-Retry https://pkg.go.dev/git.sr.ht/~mariusor/ssm#example-Retry
[2] https://git.sr.ht/~mariusor/frankenjack/tree/master/item/sources/feeds/states.go#L107 https://git.sr.ht/~mariusor/frankenjack/tree/master/item/sou...