Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ListeningScheduledExecutorService (0.23 sec)

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

     * MoreExecutors#listeningDecorator(ScheduledExecutorService)}.
     *
     * @author Chris Povirk
     * @since 10.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface ListeningScheduledExecutorService
        extends ScheduledExecutorService, ListeningExecutorService {
    
      /** @since 15.0 (previously returned ScheduledFuture) */
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       */
      public static ListeningScheduledExecutorService sameThreadScheduledExecutor() {
        return new SameThreadScheduledExecutorService();
      }
    
      private static final class NoOpScheduledExecutorService extends AbstractListeningExecutorService
          implements ListeningScheduledExecutorService {
    
        private volatile boolean shutdown;
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.util.concurrent.ListeningScheduledExecutorService;
    import java.util.List;
    import java.util.concurrent.Callable;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * ListeningScheduledExecutorService}, it is returned untouched, and the rest of this
       * documentation does not apply.
       *
       * @since 10.0
       */
      @J2ktIncompatible
      @GwtIncompatible // TODO
      public static ListeningScheduledExecutorService listeningDecorator(
          ScheduledExecutorService delegate) {
        return (delegate instanceof ListeningScheduledExecutorService)
            ? (ListeningScheduledExecutorService) delegate
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

            new ScheduledThreadPoolExecutor(1) {
              @Override
              protected void afterExecute(Runnable r, Throwable t) {
                completed.countDown();
              }
            };
        ListeningScheduledExecutorService service = listeningDecorator(delegate);
        ListenableFuture<Integer> future = service.schedule(Callables.returning(42), 1, MILLISECONDS);
    
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

    import com.google.common.util.concurrent.ListenableScheduledFuture;
    import com.google.common.util.concurrent.ListeningExecutorService;
    import com.google.common.util.concurrent.ListeningScheduledExecutorService;
    import java.util.Collection;
    import java.util.List;
    import java.util.concurrent.AbstractExecutorService;
    import java.util.concurrent.Callable;
    import java.util.concurrent.Delayed;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

    import com.google.common.util.concurrent.ListenableScheduledFuture;
    import com.google.common.util.concurrent.ListeningExecutorService;
    import com.google.common.util.concurrent.ListeningScheduledExecutorService;
    import java.util.Collection;
    import java.util.List;
    import java.util.concurrent.AbstractExecutorService;
    import java.util.concurrent.Callable;
    import java.util.concurrent.Delayed;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

            new ScheduledThreadPoolExecutor(1) {
              @Override
              protected void afterExecute(Runnable r, Throwable t) {
                completed.countDown();
              }
            };
        ListeningScheduledExecutorService service = listeningDecorator(delegate);
        ListenableFuture<Integer> future = service.schedule(Callables.returning(42), 1, MILLISECONDS);
    
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top