Maybe try gen_retry? It’s designed to retry a process that raises an error on failure. I use it for API calls. It supports a process directly, and synchronous and asynchronous tasks.
Maybe try gen_retry? It’s designed to retry a process that raises an error on failure. I use it for API calls. It supports a process directly, and synchronous and asynchronous tasks.