Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ListeningScheduledExecutorService (0.43 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       */
      @Beta
      public static ListeningScheduledExecutorService sameThreadScheduledExecutor() {
        return new SameThreadScheduledExecutorService();
      }
    
      private static final class NoOpScheduledExecutorService extends AbstractListeningExecutorService
          implements ListeningScheduledExecutorService {
    
        private volatile boolean shutdown;
    
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       */
      @Beta
      public static ListeningScheduledExecutorService sameThreadScheduledExecutor() {
        return new SameThreadScheduledExecutorService();
      }
    
      private static final class NoOpScheduledExecutorService extends AbstractListeningExecutorService
          implements ListeningScheduledExecutorService {
    
        private volatile boolean shutdown;
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

     */
    
    package com.google.common.util.concurrent.testing;
    
    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;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

     */
    
    package com.google.common.util.concurrent.testing;
    
    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;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K 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;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java

      private Runnable recordedCommand;
      private long recordedDelay;
      private long recordedInterval;
      private TimeUnit recordedTimeUnit;
    
      private final ListeningScheduledExecutorService executorService = new FakeExecutorService();
    
      public void testScheduleRunnable() throws Exception {
        Runnable command = () -> {};
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 17 20:45:59 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  8. android/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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

              }
            };
        ListeningScheduledExecutorService service = listeningDecorator(delegate);
        ListenableFuture<Integer> future =
            service.schedule(Callables.returning(42), 1, TimeUnit.MILLISECONDS);
    
        /*
         * Wait not just until the Future's value is set (as in future.get()) but
         * also until ListeningScheduledExecutorService's wrapper task is done
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (0)
  10. 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;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
Back to top