spebbe / dartz

Functional programming in Dart
MIT License
749 stars 60 forks source link

Task Retry #95

Open cranst0n opened 2 years ago

cranst0n commented 2 years ago

I cooked up a retry mechanism, similar to cats-retry, for Task. This may belong in a separate library, but I won't have time to make this PR worthy for a while, so I figured I throw it in a gist in case it's helpful for anyone.

It's likely I'll be revisiting this in the coming weeks/months so I can probably polish this up if you think it would be useful.

spebbe commented 2 years ago

This looks amazing! I've toyed with it a bit and I think it could be a valuable addition either as a separate library or part of the core. Not sure which way is more appropriate? Great work!