Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for synchronizedSupplier (0.12 sec)

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

          threads[i] =
              new Thread() {
                @Override
                public void run() {
                  for (int j = 0; j < iterations; j++) {
                    Object unused = Suppliers.synchronizedSupplier(nonThreadSafe).get();
                  }
                }
              };
        }
        for (Thread t : threads) {
          t.start();
        }
        for (Thread t : threads) {
          t.join();
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Suppliers.java

       * Returns a supplier whose {@code get()} method synchronizes on {@code delegate} before calling
       * it, making it thread-safe.
       */
      @J2ktIncompatible
      public static <T extends @Nullable Object> Supplier<T> synchronizedSupplier(
          Supplier<T> delegate) {
        return new ThreadSafeSupplier<>(delegate);
      }
    
      @J2ktIncompatible
      private static final class ThreadSafeSupplier<T extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

       * Returns a supplier whose {@code get()} method synchronizes on {@code delegate} before calling
       * it, making it thread-safe.
       */
      @J2ktIncompatible
      public static <T extends @Nullable Object> Supplier<T> synchronizedSupplier(
          Supplier<T> delegate) {
        return new ThreadSafeSupplier<>(delegate);
      }
    
      @J2ktIncompatible
      private static final class ThreadSafeSupplier<T extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
Back to top