Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 70 for addListener (0.19 sec)

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

       * }</pre>
       *
       * <p>When selecting an executor, note that {@code directExecutor} is dangerous in some cases. See
       * the discussion in the {@link ListenableFuture#addListener} documentation. All its warnings
       * about heavyweight listeners are also applicable to heavyweight functions passed to this method.
       *
       * <p>After calling this method, you may not call {@link #finishToFuture()}, {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

        final Error error = new Error();
        final CountDownLatch latch = new CountDownLatch(1);
        TestService service = new TestService();
        service.addListener(
            new Service.Listener() {
              @Override
              public void running() {
                throw error;
              }
    
              @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        } finally {
          joinPool(e);
        }
      }
    
      private static void assertListenerRunImmediately(ListenableFuture<?> future) {
        CountingRunnable listener = new CountingRunnable();
        future.addListener(listener, directExecutor());
        assertEquals(1, listener.count);
      }
    
      private static final class CountingRunnable implements Runnable {
        int count;
    
        @Override
        public void run() {
    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)
  4. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        } finally {
          joinPool(e);
        }
      }
    
      private static void assertListenerRunImmediately(ListenableFuture<?> future) {
        CountingRunnable listener = new CountingRunnable();
        future.addListener(listener, directExecutor());
        assertEquals(1, listener.count);
      }
    
      private static final class CountingRunnable implements Runnable {
        int count;
    
        @Override
        public void run() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (3)
  5. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

          ListeningExecutorService executorService,
          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)
  6. maven-core/src/test/resources/apiv4-repo/junit/junit/4.13.1/junit-4.13.1.jar

    protected java.util.List fListeners; protected int fRunTests; private boolean fStop; public void TestResult(); public synchronized void addError(Test, Throwable); public synchronized void addFailure(Test, AssertionFailedError); public synchronized void addListener(TestListener); public synchronized void removeListener(TestListener); private synchronized java.util.List cloneListeners(); public void endTest(Test); public synchronized int errorCount(); public synchronized java.util.Enumeration errors(); public...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 373.7K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/apiv4-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar

    getRemoteRepostories(); public ArtifactResolutionRe setRemoteRepostories(java.util.List); public filter.ArtifactFilter getFilter(); public ArtifactResolutionRe setFilter(filter.ArtifactFilter); public java.util.List getListeners(); public ArtifactResolutionRe addListener(ResolutionListener); public org.apache.maven.artifact.metadata.ArtifactMetadataSour getMetadataSource(); public ArtifactResolutionRe setMetadataSource(org.apache.maven.artifact.metadata.ArtifactMetadataSour); public java.util.Map getManagedVersionMap();...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 160.1K bytes
    - Viewed (0)
  8. maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar

    getRemoteRepostories(); public ArtifactResolutionRe setRemoteRepostories(java.util.List); public filter.ArtifactFilter getFilter(); public ArtifactResolutionRe setFilter(filter.ArtifactFilter); public java.util.List getListeners(); public ArtifactResolutionRe addListener(ResolutionListener); public org.apache.maven.artifact.metadata.ArtifactMetadataSour getMetadataSource(); public ArtifactResolutionRe setMetadataSource(org.apache.maven.artifact.metadata.ArtifactMetadataSour); public java.util.Map getManagedVersionMap();...
    Archive
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Tue Oct 16 20:15:40 GMT 2007
    - 160.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

            final LoadingValueReference<K, V> loadingValueReference,
            CacheLoader<? super K, V> loader) {
          final ListenableFuture<V> loadingFuture = loadingValueReference.loadFuture(key, loader);
          loadingFuture.addListener(
              () -> {
                try {
                  getAndRecordStats(key, hash, loadingValueReference, loadingFuture);
                } catch (Throwable t) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/LocalCache.java

            final LoadingValueReference<K, V> loadingValueReference,
            CacheLoader<? super K, V> loader) {
          final ListenableFuture<V> loadingFuture = loadingValueReference.loadFuture(key, loader);
          loadingFuture.addListener(
              () -> {
                try {
                  getAndRecordStats(key, hash, loadingValueReference, loadingFuture);
                } catch (Throwable t) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top