Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testSynchronizedSupplierThreadSafe (0.1 sec)

  1. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
      public void testSynchronizedSupplierThreadSafe() throws InterruptedException {
        Supplier<Integer> nonThreadSafe =
            new Supplier<Integer>() {
              int counter = 0;
    
              @Override
              public Integer get() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top