private void waitForKey(Object key){
  if (isLoaded()) {
    return;
  }
  String filename=getFilenameForKey((String)key);
  Future<CacheHeader> future=mLoadingFiles.get(filename);
  if (future != null) {
    try {
      future.get();
    }
 catch (    InterruptedException ignored) {
    }
catch (    ExecutionException ignored) {
    }
  }
}

private void waitForKey ( Object key ) { if ( isLoaded ( ) ) { return ; } String filename = getFilenameForKey ( ( String ) key ) ; Future < CacheHeader > future = mLoadingFiles . get ( filename ) ; if ( future != null ) { try { future . get ( ) ; } catch ( InterruptedException ignored ) { } catch ( ExecutionException ignored ) { } } }
waits until the specified cache key is ready and loaded .
