Prototypes a GET HTTP request with retries and an independent timeout.
The main question here is whether the suggested getWithTimeout is a safe and good practice — i.e. an early return on a function when there's a child goroutine that might be working yet.
Prototypes a GET HTTP request with retries and an independent timeout.
The main question here is whether the suggested
getWithTimeout
is a safe and good practice — i.e. an early return on a function when there's a child goroutine that might be working yet.