Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WrappingScheduledExecutorService (0.58 sec)

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

    import java.util.concurrent.ScheduledFuture;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    /**
     * Test for {@link WrappingScheduledExecutorService}
     *
     * @author Luke Sandberg
     */
    public class WrappingScheduledExecutorServiceTest extends TestCase {
      private static final Runnable DO_NOTHING =
          new Runnable() {
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/MoreExecutors.java

      static ScheduledExecutorService renamingDecorator(
          final ScheduledExecutorService service, final Supplier<String> nameSupplier) {
        checkNotNull(service);
        checkNotNull(nameSupplier);
        return new WrappingScheduledExecutorService(service) {
          @Override
          protected <T extends @Nullable Object> Callable<T> wrapTask(Callable<T> callable) {
            return Callables.threadRenaming(callable, nameSupplier);
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
Back to top