Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 158 for execute (0.21 sec)

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

    import com.google.common.annotations.GwtCompatible;
    import java.util.concurrent.Executor;
    
    /**
     * An {@link Executor} that runs each task in the thread that invokes {@link Executor#execute
     * execute}.
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    enum DirectExecutor implements Executor {
      INSTANCE;
    
      @Override
      public void execute(Runnable command) {
        command.run();
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 05 22:27:35 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      protected static final boolean expensiveTests = Boolean.getBoolean("jsr166.expensiveTests");
    
      /**
       * If true, report on stdout all "slow" tests, that is, ones that take more than profileThreshold
       * milliseconds to execute.
       */
      private static final boolean profileTests = Boolean.getBoolean("jsr166.profileTests");
    
      /**
       * The number of milliseconds that tests are permitted for execution without being reported, when
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java

      /**
       * Returns the {@link Executor} that will be used to run this service. Subclasses may override
       * this method to use a custom {@link Executor}, which may configure its worker thread with a
       * specific name, thread group or priority. The returned executor's {@link
       * Executor#execute(Runnable) execute()} method is called when this service is started and
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 13:59:28 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Queues.java

          TimeUnit unit)
          throws InterruptedException {
        Preconditions.checkNotNull(buffer);
        /*
         * This code performs one System.nanoTime() more than necessary, and in return, the time to
         * execute Queue#drainTo is not added *on top* of waiting for the timeout (which could make
         * the timeout arbitrarily inaccurate, given a queue that is slow to drain).
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

       */
      protected void triggerShutdown() {}
    
      /**
       * Returns the {@link Executor} that will be used to run this service. Subclasses may override
       * this method to use a custom {@link Executor}, which may configure its worker thread with a
       * specific name, thread group or priority. The returned executor's {@link
       * Executor#execute(Runnable) execute()} method is called when this service is started, and should
       * return promptly.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          @Override
          public Thread newThread(Runnable r) {
            return new Thread(r);
          }
        }
    
        public static final class DummyExecutor implements Executor, Serializable {
          @Override
          public void execute(Runnable command) {}
        }
      }
    
      private static final class NullByteSink extends ByteSink implements Serializable {
        private static final NullByteSink INSTANCE = new NullByteSink();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  7. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          @Override
          public Thread newThread(Runnable r) {
            return new Thread(r);
          }
        }
    
        public static final class DummyExecutor implements Executor, Serializable {
          @Override
          public void execute(Runnable command) {}
        }
      }
    
      private static final class NullByteSink extends ByteSink implements Serializable {
        private static final NullByteSink INSTANCE = new NullByteSink();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       */
      public static <V extends @Nullable Object> ListenableFuture<V> listenInPoolThread(
          Future<V> future, Executor executor) {
        checkNotNull(executor);
        if (future instanceof ListenableFuture) {
          return (ListenableFuture<V>) future;
        }
        return new ListenableFutureAdapter<>(future, executor);
      }
    
      /**
       * An adapter to turn a {@link Future} into a {@link ListenableFuture}. This will wait on the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ExecutorService executor = newDirectExecutorService();
        assertEquals(ImmutableList.of(), executor.shutdownNow());
        assertTrue(executor.isShutdown());
      }
    
      public void testExecuteAfterShutdown() {
        ExecutorService executor = newDirectExecutorService();
        executor.shutdown();
        assertThrows(RejectedExecutionException.class, () -> executor.execute(EMPTY_RUNNABLE));
      }
    
    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. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

            new Service() {
              final NoOpService delegate = new NoOpService();
    
              @Override
              public final void addListener(Listener listener, Executor executor) {
                service1.startAsync();
                delegate.addListener(listener, executor);
              }
    
              // Delegates from here on down
              @Override
              public final Service startAsync() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.9K bytes
    - Viewed (0)
Back to top