Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 796 for Hatch (0.18 sec)

  1. guava-testlib/src/com/google/common/testing/GcFinalization.java

        do {
          System.runFinalization();
          if (latch.getCount() == 0) {
            return;
          }
          System.gc();
          try {
            if (latch.await(1L, SECONDS)) {
              return;
            }
          } catch (InterruptedException ie) {
            throw new RuntimeException("Unexpected interrupt while waiting for latch", ie);
          }
        } while (System.nanoTime() - deadline < 0);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

        final CyclicBarrier barrier = new CyclicBarrier(2);
        final CountDownLatch latch = new CountDownLatch(2);
    
        new Thread(
                new Runnable() {
                  @Override
                  public void run() {
                    try {
                      barrier.await();
                    } catch (Exception e) {
                      throw new AssertionError(e);
                    }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

              },
              executor);
          fail();
        } catch (IllegalStateException expected2) {
        }
        try {
          ClosingFuture.whenAllComplete(asList(closingFuture));
          fail();
        } catch (IllegalStateException expected1) {
        }
        try {
          ClosingFuture.whenAllSucceed(asList(closingFuture));
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

          try {
            Thread.sleep(tMinus);
          } catch (InterruptedException e) {
            throw new AssertionError(e);
          }
          doAction();
        }
    
        protected abstract void doAction();
      }
    
      private static class CountDown extends DelayedActionRunnable {
        private final CountDownLatch latch;
    
        public CountDown(CountDownLatch latch, long tMinus) {
          super(tMinus);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestGeneral(inRange('p', 'x'), 'q', 'z');
      }
    
      private void doTestGeneral(CharMatcher matcher, char match, char noMatch) {
        doTestOneCharMatch(matcher, "" + match);
        doTestOneCharNoMatch(matcher, "" + noMatch);
        doTestMatchThenNoMatch(matcher, "" + match + noMatch);
        doTestNoMatchThenMatch(matcher, "" + noMatch + match);
      }
    
      private void doTestOneCharMatch(CharMatcher matcher, String s) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestGeneral(inRange('p', 'x'), 'q', 'z');
      }
    
      private void doTestGeneral(CharMatcher matcher, char match, char noMatch) {
        doTestOneCharMatch(matcher, "" + match);
        doTestOneCharNoMatch(matcher, "" + noMatch);
        doTestMatchThenNoMatch(matcher, "" + match + noMatch);
        doTestNoMatchThenMatch(matcher, "" + noMatch + match);
      }
    
      private void doTestOneCharMatch(CharMatcher matcher, String s) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

              public void failed(State from, Throwable failure) {
                assertEquals(State.RUNNING, from);
                assertEquals(error, failure);
                latch.countDown();
              }
            },
            directExecutor());
        service.startAsync();
        latch.await();
    
        assertEquals(0, service.numberOfTimesRunCalled.get());
        assertEquals(Service.State.FAILED, service.state());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

            return Outcome.FAILURE;
          }
        } catch (InvocationTargetException targetException) {
          Throwable actualException = targetException.getTargetException();
          if (actualException instanceof InterruptedException) {
            return Outcome.INTERRUPT;
          } else {
            throw newAssertionError("unexpected exception", targetException);
          }
        } catch (IllegalAccessException e) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/HostAndPort.java

      /**
       * Split a freeform string into a host and port, without strict validation.
       *
       * <p>Note that the host-only formats will leave the port field undefined. You can use {@link
       * #withDefaultPort(int)} to patch in a default value.
       *
       * @param hostPortString the input string to parse.
       * @return if parsing was successful, a populated HostAndPort object.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

        try {
          iterator.remove();
          fail();
        } catch (UnsupportedOperationException expected) {
        }
        assertFalse(iterator.hasNext());
        try {
          iterator.next();
          fail();
        } catch (NoSuchElementException expected) {
        }
        try {
          iterable.iterator();
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.8K bytes
    - Viewed (0)
Back to top