Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 379 for Runnable (0.17 sec)

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

                      + runnable
                      + " with executor "
                      + executor,
                  e);
        }
      }
    
      private static final class RunnableExecutorPair {
        final Runnable runnable;
        final Executor executor;
        @CheckForNull RunnableExecutorPair next;
    
        RunnableExecutorPair(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        tester.testForwarding(
            Runnable.class,
            new Function<Runnable, Runnable>() {
              @Override
              public Runnable apply(final Runnable runnable) {
                return new ForwardingRunnable(runnable);
              }
            });
      }
    
      public void testToStringForwarding() {
        tester.testForwarding(
            Runnable.class,
            new Function<Runnable, Runnable>() {
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        try {
          final SequentialExecutor executor = new SequentialExecutor(service);
          Runnable errorTask =
              new Runnable() {
                @Override
                public void run() {
                  throw new MyError();
                }
              };
          Runnable barrierTask =
              new Runnable() {
                @Override
                public void run() {
                  try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        tester.testForwarding(
            Runnable.class,
            new Function<Runnable, Runnable>() {
              @Override
              public Runnable apply(final Runnable runnable) {
                return new ForwardingRunnable(runnable);
              }
            });
      }
    
      public void testToStringForwarding() {
        tester.testForwarding(
            Runnable.class,
            new Function<Runnable, Runnable>() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ThrowingRunnable runnable = new ThrowingRunnable(5, ex);
        future = service.scheduleAtFixedRate(runnable, 1, 1, TimeUnit.MILLISECONDS);
        assertExecutionException(future, ex);
        assertEquals(5, runnable.count);
        assertEquals(0, delegate.getQueue().size());
    
        runnable = new ThrowingRunnable(5, ex);
        future = service.scheduleWithFixedDelay(runnable, 1, 1, TimeUnit.MILLISECONDS);
    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)
  6. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

            }
          };
      private static final Runnable GOOD_RUNNABLE =
          new Runnable() {
            @Override
            public void run() {
              try {
                MILLISECONDS.sleep(DELAY_MS);
              } catch (InterruptedException e) {
                throw new RuntimeException(e);
              }
            }
          };
      private static final Runnable BAD_RUNNABLE =
          new Runnable() {
            @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        try {
          final SequentialExecutor executor = new SequentialExecutor(service);
          Runnable errorTask =
              new Runnable() {
                @Override
                public void run() {
                  throw new MyError();
                }
              };
          Runnable barrierTask =
              new Runnable() {
                @Override
                public void run() {
                  try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

      enum WorkerRunningState {
        /** Runnable is not running and not queued for execution */
        IDLE,
        /** Runnable is not running, but is being queued for execution */
        QUEUING,
        /** runnable has been submitted but has not yet begun execution */
        QUEUED,
        RUNNING,
      }
    
      /** Underlying executor that all submitted Runnable objects are run on. */
      private final Executor executor;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

    // instead of using an AtomicReferenceFieldUpdater. This reference stores Thread instances
    // and DONE/INTERRUPTED - they have a common ancestor of Runnable.
    abstract class InterruptibleTask<T extends @Nullable Object>
        extends AtomicReference<@Nullable Runnable> implements Runnable {
      static {
        // Prevent rare disastrous classloading in first call to LockSupport.park.
        // See: https://bugs.openjdk.java.net/browse/JDK-8074773
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      }
    
      @CanIgnoreReturnValue
      public B withSetUp(Runnable setUp) {
        this.setUp = setUp;
        return self();
      }
    
      public Runnable getSetUp() {
        return setUp;
      }
    
      @CanIgnoreReturnValue
      public B withTearDown(Runnable tearDown) {
        this.tearDown = tearDown;
        return self();
      }
    
      public Runnable getTearDown() {
        return tearDown;
      }
    
      // Features
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top