Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 122 for AddListener (0.16 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        listenable.addListener(earlyListener, directExecutor());
    
        input.allowGetToComplete.countDown();
        // Now give the get() thread time to finish:
        assertTrue(earlyListener.wasRun.await(1, SECONDS));
    
        // Now test an additional addListener call, which will be run in-thread:
        RecordingRunnable lateListener = new RecordingRunnable();
        listenable.addListener(lateListener, directExecutor());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/process/internal/worker/DefaultWorkerProcessSpec.groovy

            op.start {
                op.callbackLater {
                    workerProcess.onConnect(connection)
                }
                workerProcess.start()
            }
    
            then:
            1 * execHandle.addListener(_)
            1 * execHandle.start()
            1 * acceptor.requestStop()
        }
    
        def startThrowsExceptionOnConnectTimeoutAndCleansUp() {
            when:
            workerProcess.setExecHandle(execHandle)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 07:21:35 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       *
       * <p><b>Warning:</b> If the input future does not already implement {@code ListenableFuture}, the
       * returned future will emulate {@link ListenableFuture#addListener} by taking a thread from an
       * internal, unbounded pool at the first call to {@code addListener} and holding it until the
       * future is {@linkplain Future#isDone() done}.
       *
       * <p>Prefer to create {@code ListenableFuture} instances with {@link SettableFuture}, {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/DefaultMemoryManager.java

                holders.remove(holder);
            }
        }
    
        @Override
        public void addListener(JvmMemoryStatusListener listener) {
            listenerManager.addListener(listener);
        }
    
        @Override
        public void addListener(OsMemoryStatusListener listener) {
            listenerManager.addListener(listener);
        }
    
        @Override
        public void removeListener(JvmMemoryStatusListener listener) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       *
       * <p><b>Warning:</b> If the input future does not already implement {@code ListenableFuture}, the
       * returned future will emulate {@link ListenableFuture#addListener} by taking a thread from an
       * internal, unbounded pool at the first call to {@code addListener} and holding it until the
       * future is {@linkplain Future#isDone() done}.
       *
       * <p>Prefer to create {@code ListenableFuture} instances with {@link SettableFuture}, {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/deployment/internal/PendingChangesManager.java

        public PendingChangesManager(ListenerManager listenerManager) {
            this.listenerManager = listenerManager;
        }
    
        public void addListener(PendingChangesListener listener) {
            listenerManager.addListener(listener);
        }
    
        public void removeListener(PendingChangesListener listener) {
            listenerManager.removeListener(listener);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 23 14:30:14 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/static_content.go

    		name:     name,
    		caBundle: caBundleAndVerifier,
    	}, nil
    }
    
    // Name is just an identifier
    func (c *staticCAContent) Name() string {
    	return c.name
    }
    
    func (c *staticCAContent) AddListener(Listener) {}
    
    // CurrentCABundleContent provides ca bundle byte content
    func (c *staticCAContent) CurrentCABundleContent() (cabundle []byte) {
    	return c.caBundle.caBundle
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 3K bytes
    - Viewed (0)
  8. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

     * </ul>
     *
     * <p>The main purpose of {@link #addListener addListener} is to support this chaining. You will
     * rarely use it directly, in part because it does not provide direct access to the {@code Future}
     * result. (If you want such access, you may prefer {@link Futures#addCallback
     * Futures.addCallback}.) Still, direct {@code addListener} calls are occasionally useful:
     *
     * <pre>{@code
     * final String name = ...;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/ListenableFuture.java

     * </ul>
     *
     * <p>The main purpose of {@link #addListener addListener} is to support this chaining. You will
     * rarely use it directly, in part because it does not provide direct access to the {@code Future}
     * result. (If you want such access, you may prefer {@link Futures#addCallback
     * Futures.addCallback}.) Still, direct {@code addListener} calls are occasionally useful:
     *
     * <pre>{@code
     * final String name = ...;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemoryManager.java

    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    @ServiceScope(Scope.Global.class)
    public interface MemoryManager {
    
        void addListener(JvmMemoryStatusListener listener);
    
        void addListener(OsMemoryStatusListener listener);
    
        void removeListener(JvmMemoryStatusListener listener);
    
        void removeListener(OsMemoryStatusListener listener);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top