Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testOverflowTimeout (0.07 sec)

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

      public void testNegativeTimeout() throws Exception {
        future.set(1);
        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top