providerConnectTimeoutForUrl function
The effective connect watchdog for one request URL (the
sendWatchedProviderRequest seam): the per-provider precedence chain
wins over the global effective value, which already folds the section
- env.
Implementation
Duration providerConnectTimeoutForUrl(Uri url) {
if (providerTuningRegistry.isEmpty) return effectiveProviderConnectTimeout;
for (final entry in providerTuningRegistry.matchesForUrl(url)) {
final value = entry.connect;
if (value != null) return value;
}
return effectiveProviderConnectTimeout;
}