Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Try (0.19 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(future.toString()).endsWith("[status=FAILURE, cause=[" + exception + "]]");
    
        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
        try {
          getDoneFromTimeoutOverload(future);
          fail();
        } catch (ExecutionException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(future.toString()).endsWith("[status=FAILURE, cause=[" + exception + "]]");
    
        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
        try {
          getDoneFromTimeoutOverload(future);
          fail();
        } catch (ExecutionException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFile.java

                tree.connectionState = 2;
            }
    
            try {
                if( log.level >= 3 )
                    log.println( "doConnect: " + addr );
    
                tree.treeConnect(null, null);
            } catch (SmbAuthException sae) {
                NtlmPasswordAuthentication a;
                SmbSession ssn;
    
                if (share == null) { // IPC$ - try "anonymous" credentials
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  4. guava/src/com/google/common/cache/LocalCache.java

          stopwatch.start();
          V previousValue;
          try {
            previousValue = oldValue.waitForValue();
          } catch (ExecutionException e) {
            previousValue = null;
          }
          V newValue;
          try {
            newValue = function.apply(key, previousValue);
          } catch (Throwable th) {
            this.setException(th);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

            if (value == null) {
              misses++;
              keysToLoad.add(key);
            } else {
              hits++;
            }
          }
        }
    
        try {
          if (!keysToLoad.isEmpty()) {
            try {
              Map<K, V> newEntries = loadAll(unmodifiableSet(keysToLoad), defaultLoader);
              for (K key : keysToLoad) {
                V value = newEntries.get(key);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        new Thread() {
          @Override
          public void run() {
            try {
              map.get(one, loader);
            } catch (ExecutionException e) {
              throw new RuntimeException(e);
            }
            doneSignal.countDown();
          }
        }.start();
    
        try {
          computingSignal.await();
        } catch (InterruptedException e) {
          throw new RuntimeException(e);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        new Thread() {
          @Override
          public void run() {
            try {
              map.get(one, loader);
            } catch (ExecutionException e) {
              throw new RuntimeException(e);
            }
            doneSignal.countDown();
          }
        }.start();
    
        try {
          computingSignal.await();
        } catch (InterruptedException e) {
          throw new RuntimeException(e);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

        server.enqueue(MockResponse())
        client =
          client.newBuilder()
            .addInterceptor(
              Interceptor { chain: Interceptor.Chain ->
                try {
                  chain.proceed(chain.request())
                  throw AssertionError()
                } catch (expected: IOException) {
                  chain.proceed(chain.request())
                }
              },
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

        }
      }
    
      private static void closeQuietly(@CheckForNull final Closeable closeable, Executor executor) {
        if (closeable == null) {
          return;
        }
        try {
          executor.execute(
              () -> {
                try {
                  closeable.close();
                } catch (Exception e) {
                  /*
                   * In guava-jre, any kind of Exception may be thrown because `closeable` has type
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    oh! she knows such a very little!  Besides, SHE'S she, and I'm I,
    and--oh dear, how puzzling it all is!  I'll try if I know all the
    things I used to know.  Let me see:  four times five is twelve,
    and four times six is thirteen, and four times seven is--oh dear!
    I shall never get to twenty at that rate!  However, the
    Multiplication Table doesn't signify:  let's try Geography.
    London is the capital of Paris, and Paris is the capital of Rome,
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
Back to top