Skip to content
  • Mugurell's avatar
    For #7627 - Add hasRegionCached() to LocationService · 954c2e47
    Mugurell authored
    This method can be used by clients to better estimate if fetchRegion() is
    expected to take very little time as the region is already cached or if it can
    take a bit longer since there are multiple operations / longer running
    operations needed to actually fetch the region.
    
    In the case of MozillaLocationService if the region is not already cached the
    process of fetching the region involves a REST call with a connect / read
    timeout of 10 seconds.
    954c2e47