Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 196 for callables (0.43 sec)

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

      /**
       * Creates a {@code ListenableFutureTask} that will upon running, execute the given {@code
       * Callable}.
       *
       * @param callable the callable task
       * @since 10.0
       */
      public static <V extends @Nullable Object> ListenableFutureTask<V> create(Callable<V> callable) {
        return new ListenableFutureTask<>(callable);
      }
    
      /**
       * Creates a {@code ListenableFutureTask} that will upon running, execute the given {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/WrappingExecutorService.java

        this.delegate = checkNotNull(delegate);
      }
    
      /**
       * Wraps a {@code Callable} for submission to the underlying executor. This method is also applied
       * to any {@code Runnable} passed to the default implementation of {@link #wrapTask(Runnable)}.
       */
      protected abstract <T extends @Nullable Object> Callable<T> wrapTask(Callable<T> callable);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolProviderByJavaPsi.kt

        override fun getCallableSymbol(callable: PsiMember): KtCallableSymbol? {
            if (callable !is PsiMethod && callable !is PsiField) return null
            val name = callable.name?.let(Name::identifier) ?: return null
            val containingClass = callable.containingClass ?: return null
            val classSymbol = getNamedClassSymbol(containingClass) ?: return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

      private static final String GOOD_CALLABLE_RESULT = "good callable result";
      private static final Callable<String> GOOD_CALLABLE =
          new Callable<String>() {
            @Override
            public String call() throws InterruptedException {
              MILLISECONDS.sleep(DELAY_MS);
              return GOOD_CALLABLE_RESULT;
            }
          };
      private static final Callable<String> BAD_CALLABLE =
          new Callable<String>() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

        taskDone = false;
        Callable<Integer> task =
            new Callable<Integer>() {
              @Override
              public Integer call() {
                taskDone = true;
                return 6;
              }
            };
        Future<Integer> future =
            TestingExecutors.sameThreadScheduledExecutor().schedule(task, 10000, TimeUnit.MILLISECONDS);
        assertTrue("Should run callable immediately", taskDone);
    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-tests/test/com/google/common/util/concurrent/ListeningExecutorServiceTest.java

    import java.util.Set;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    public final class ListeningExecutorServiceTest extends TestCase {
    
      private Collection<? extends Callable<?>> recordedTasks;
      private long recordedTimeout;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Jun 02 12:45:23 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        public TestExecutor(MockExecutor mock) {
          super(mock);
        }
    
        @Override
        protected <T> Callable<T> wrapTask(Callable<T> callable) {
          return new WrappedCallable<T>(callable);
        }
    
        @Override
        protected Runnable wrapTask(Runnable command) {
          return new WrappedRunnable(command);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 7.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        public TestExecutor(MockExecutor mock) {
          super(mock);
        }
    
        @Override
        protected <T> Callable<T> wrapTask(Callable<T> callable) {
          return new WrappedCallable<T>(callable);
        }
    
        @Override
        protected Runnable wrapTask(Runnable command) {
          return new WrappedRunnable(command);
        }
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 7.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        Callable<@Nullable Void> cancelRunnable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() {
                cancellationSuccess.set(currentFuture.get().cancel(true));
                awaitUnchecked(barrier);
                return null;
              }
            };
        Callable<@Nullable Void> setFutureCompleteSuccessfullyRunnable =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        return schedule(java.util.concurrent.Executors.callable(command), delay, unit);
      }
    
      @Override
      public <V> ListenableScheduledFuture<V> schedule(
          Callable<V> callable, long delay, TimeUnit unit) {
        Preconditions.checkNotNull(callable, "callable must not be null!");
        Preconditions.checkNotNull(unit, "unit must not be null!");
        ListenableFuture<V> delegateFuture = submit(callable);
    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)
Back to top