10 ms·
So you make an HTTP request to some server and it takes 60 seconds to respond. Externally you set that flag 1 second into the HTTP request. Your program has to
by ric2b 3y ago
So you make an HTTP request to some server and it takes 60 seconds to respond.
Externally you set that flag 1 second into the HTTP request. Your program has to wait for 59 seconds before it finally has a chance at cancelling, even though you added a bunch of boilerplate to supposedly make cancellation possible.
- Night_Thastus 3y agoIf the server takes 60 seconds to respond, and you need responses on the order of 1 second, I'd say that is the problem - not threads.