Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for threadRenaming (0.07 seconds)

  1. android/guava/src/com/google/common/util/concurrent/Callables.java

       *     for each invocation of the wrapped callable.
       */
      @J2ktIncompatible
      @GwtIncompatible // threads
      static <T extends @Nullable Object> Callable<T> threadRenaming(
          Callable<T> callable, Supplier<String> nameSupplier) {
        checkNotNull(nameSupplier);
        checkNotNull(callable);
        return () -> {
          Thread currentThread = Thread.currentThread();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

          @Override
          protected <T extends @Nullable Object> Callable<T> wrapTask(Callable<T> callable) {
            return threadRenaming(callable, nameSupplier);
          }
    
          @Override
          protected Runnable wrapTask(Runnable command) {
            return threadRenaming(command, nameSupplier);
          }
        };
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Callable<@Nullable Void> callable =
            () -> {
              assertThat(Thread.currentThread().getName()).isEqualTo(newName.get());
              return null;
            };
        Callables.threadRenaming(callable, newName).call();
        assertThat(Thread.currentThread().getName()).isEqualTo(oldName);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Callable<@Nullable Void> callable =
            () -> {
              assertThat(Thread.currentThread().getName()).isEqualTo(newName.get());
              return null;
            };
        Callables.threadRenaming(callable, newName).call();
        assertThat(Thread.currentThread().getName()).isEqualTo(oldName);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4K bytes
    - Click Count (0)
Back to Top