Should set _operationTimeout timeout *before* invoking _fn()
cybersam opened this issue · 0 comments
cybersam commented
attempt() and retry() both set the _operationTimeout timeout after invoking _fn(). Therefore, the time it takes _fn() to perform any synchronous processing (which could be significant) is ignored.
The timeout should be set immediately before invoking _fn().