Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 264 for Future (0.36 sec)

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

      /**
       * Returns an output {@code Future} to use in place of the given {@code input}. The output {@code
       * Future} need not be {@linkplain Future#isDone done}, making {@code AsyncFunction} suitable for
       * asynchronous derivations.
       *
       * <p>Throwing an exception from this method is equivalent to returning a failing {@code Future}.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sun Jun 20 10:45:35 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/WatchTest.java

        }
    
    
        private void setupWatch ( SmbWatchHandle w ) throws InterruptedException {
            if ( this.future != null ) {
                this.future.cancel(true);
            }
            this.future = this.executor.submit(w);
            Thread.sleep(1000);
        }
    
    
        @Test
        public void testWatchCreate () throws CIFSException, MalformedURLException, UnknownHostException, InterruptedException, ExecutionException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        }
    
        @Override
        public <T> Future<T> submit(Callable<T> task) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public Future<?> submit(Runnable task) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public <T> Future<T> submit(Runnable task, T result) {
          throw new UnsupportedOperationException();
        }
    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)
  4. android/guava/src/com/google/common/util/concurrent/AsyncCallable.java

     * result.
     *
     * @since 20.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface AsyncCallable<V extends @Nullable Object> {
      /**
       * Computes a result {@code Future}. The output {@code Future} need not be {@linkplain
       * Future#isDone done}, making {@code AsyncCallable} suitable for asynchronous derivations.
       *
       * <p>Throwing an exception from this method is equivalent to returning a failing {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Dec 14 15:53:12 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

    @GwtIncompatible
    public class MockFutureListener implements Runnable {
      private final CountDownLatch countDownLatch;
      private final ListenableFuture<?> future;
    
      public MockFutureListener(ListenableFuture<?> future) {
        this.countDownLatch = new CountDownLatch(1);
        this.future = future;
    
        future.addListener(this, directExecutor());
      }
    
      @Override
      public void run() {
        countDownLatch.countDown();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/QueuesTest.java

          Future<?> possiblyIgnoredError = threadPool.submit(new Producer(q, 20));
          @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
          Future<?> possiblyIgnoredError1 = threadPool.submit(new Producer(q, 20));
          @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        }
    
        final SettableFuture<V> delegate = SettableFuture.create();
    
        @Override
        protected Future<V> delegate() {
          return delegate;
        }
    
        void set(V value) {
          delegate.set(value);
        }
      }
    
      private static final class RuntimeExceptionThrowingFuture<V> implements Future<V> {
        final CountDownLatch allowGetToComplete = new CountDownLatch(1);
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/CompletionServiceStub.java

                projectBuildFutureTask.run();
            }
            return projectBuildFutureTask;
        }
    
        public Future<ProjectSegment> take() throws InterruptedException {
            return null;
        }
    
        public Future<ProjectSegment> poll() {
            return null;
        }
    
        public Future<ProjectSegment> poll(long timeout, TimeUnit unit) throws InterruptedException {
            return null;
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Futures.java

       *
       * <p>Cancelling a delegate future propagates to input futures once all the delegates complete,
       * either from cancellation or because an input future has completed. If N futures are passed in,
       * and M delegates are cancelled, the remaining M input futures will be cancelled once N - M of
       * the input futures complete. If all the delegates are cancelled, all the input futures will be
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

          Callable<T> task,
          final BlockingQueue<Future<T>> queue) {
        final ListenableFuture<T> future = executorService.submit(task);
        future.addListener(
            new Runnable() {
              @Override
              public void run() {
                queue.add(future);
              }
            },
            directExecutor());
        return future;
      }
    
      /**
    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)
Back to top