Replace time.Sleep with a cancelable timer inside the cache retriever
If the context passed to resolveWithBackoff
is cancelled, the sleep inside the go routine should be stopped.
time.Sleep
is not cancellable but we can replace it with a time.Timer
The following discussion from !393 (merged) should be addressed:
-
@ash2k started a discussion: If the context is canceled this sleep should be interrupted, right? This isn't new code, can be addressed later if it makes sense.