The Send(...) should implement exponential back-off when sending the requests.
Given that this package is very young, I think it's not too late to change the signature to something like:
Then, the function should be able to re-try until an unrecoverable error is received or ctx is cancelled by the Send caller. ctxhttp can help with the latter. I think.
The
Send(...)
should implement exponential back-off when sending the requests. Given that this package is very young, I think it's not too late to change the signature to something like:Then, the function should be able to re-try until an unrecoverable error is received or ctx is cancelled by the Send caller. ctxhttp can help with the latter. I think.