2 ms·
Totally agree, but then I would expect the code would be: request.setConnectTimeout(getDefaultTimeoutFromEnvironment()) with getDefaultTimeoutFromEnvironm
by gregmac 5y ago
Totally agree, but then I would expect the code would be:
request.setConnectTimeout(getDefaultTimeoutFromEnvironment())
with getDefaultTimeoutFromEnvironment() returning a Duration.
Ideally this is consistent throughout the codebase, so that anything that uses a primitive type for time is explicitly labelled, and anything using a Duration can just be called "Timeout" or whatever.