Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for Runnable (0.18 sec)

  1. 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)
  2. 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)
  3. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      static Thread newThread(String name, Runnable runnable) {
        checkNotNull(name);
        checkNotNull(runnable);
        // TODO(b/139726489): Confirm that null is impossible here.
        Thread result = requireNonNull(platformThreadFactory().newThread(runnable));
        try {
          result.setName(name);
        } catch (SecurityException e) {
    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)
  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/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)
  6. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java

          throws InterruptedException, ExecutionException, TimeoutException {
        checkNotNull(unit);
        return get();
      }
    
      @Override
      public void addListener(Runnable runnable, Executor executor) {
        Listener listener = new Listener(runnable, executor);
        if (isDone()) {
          listener.execute();
        } else {
          listeners.add(listener);
        }
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 19:37:41 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java

     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class AbstractTester<G> extends TestCase {
      private G subjectGenerator;
      private String suiteName;
      private @Nullable Runnable setUp;
      private @Nullable Runnable tearDown;
    
      // public so that it can be referenced in generated GWT tests.
      @Override
      public void setUp() throws Exception {
        if (setUp != null) {
          setUp.run();
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          assertThat(expected).hasCauseThat().isSameInstanceAs(exception);
        }
      }
    
      public void testSubmit_runnable_completesAfterRun() throws Exception {
        final List<Runnable> pendingRunnables = newArrayList();
        final List<Runnable> executedRunnables = newArrayList();
        Runnable runnable =
            new Runnable() {
              @Override
              public void run() {
                executedRunnables.add(this);
              }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top