Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 213 for AddListener (0.25 sec)

  1. platforms/core-runtime/process-services/src/integTest/groovy/org/gradle/process/internal/health/memory/MemoryStatusUpdateIntegrationTest.groovy

                        final CountDownLatch jvmNotification = new CountDownLatch(1)
    
                        MemoryManager manager = services.get(MemoryManager.class)
                        manager.addListener(new JvmMemoryStatusListener() {
                            void onJvmMemoryStatus(JvmMemoryStatus memoryStatus) {
                                logger.lifecycle "JVM MemoryStatus notification: $memoryStatus"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 29 14:36:01 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ForwardingListenableFuture.java

      protected ForwardingListenableFuture() {}
    
      @Override
      protected abstract ListenableFuture<? extends V> delegate();
    
      @Override
      public void addListener(Runnable listener, Executor exec) {
        delegate().addListener(listener, exec);
      }
    
      // TODO(cpovirk): Use standard Javadoc form for SimpleForwarding* class and constructor
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 04 12:23:41 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/SubscribableBuildActionExecutor.java

            }
        }
    
        private void registerListener(Object listener) {
            listeners.add(listener);
            listenerManager.addListener(listener);
            if (listener instanceof BuildOperationListener) {
                buildOperationListenerManager.addListener((BuildOperationListener) listener);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/AbstractTestTask.java

         *
         * @param listener The listener to add.
         */
        public void addTestListener(TestListener listener) {
            testListenerSubscriptions.addListener(listener);
        }
    
        private void addDispatchAsTestListener(String methodName, Closure closure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:49:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/interfaces.go

    	// Enqueue should be called when an input may have changed
    	Enqueue()
    }
    
    // Notifier is a way to add listeners
    type Notifier interface {
    	// AddListener is adds a listener to be notified of potential input changes.
    	// This is a noop on static providers.
    	AddListener(listener Listener)
    }
    
    // CAContentProvider provides ca bundle byte content
    type CAContentProvider interface {
    	Notifier
    
    	// Name is just an identifier.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 2K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/internal/buildtree/BuildTreeStateTest.groovy

        }
    
        def "does nothing when function does nothing"() {
            def listener = Mock(BuildTreeLifecycleListener)
            def action = Mock(Function)
    
            given:
            listenerManager.addListener(listener)
    
            when:
            state.run(action)
    
            then:
            1 * action.apply(_)
            0 * actionExecutor._
            0 * listener._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

        delegate.addListener(fire, directExecutor());
        return result;
      }
    
      /*
       * Memory visibility of these fields. There are two cases to consider.
       *
       * 1. visibility of the writes to these fields to Fire.run:
       *
       * The initial write to delegateRef is made definitely visible via the semantics of
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/internal/file/DefaultFileSystemDefaultExcludesProvider.java

        public DefaultFileSystemDefaultExcludesProvider(ListenerManager listenerManager) {
            broadcast = listenerManager.createAnonymousBroadcaster(FileSystemDefaultExcludesListener.class);
    
            listenerManager.addListener(new RootBuildLifecycleListener() {
                @Override
                public void afterStart() {
                    DirectoryScanner.resetDefaultExcludes();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 12:37:12 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. misc/chrome/gophertool/background.js

    chrome.omnibox.onInputEntered.addListener(function(t) {
      var url = urlForInput(t);
      if (url) {
        chrome.tabs.query({ "active": true, "currentWindow": true }, function(tab) {
          if (!tab) return;
          chrome.tabs.update(tab.id, { "url": url, "selected": true });
        });
      }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 18 18:14:37 UTC 2019
    - 286 bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildSrcProblemReportingIntegrationTest.groovy

                    inputs.property('p', project)
                    doLast { t -> t.project }
                }
            """
            buildFile << """
                tasks.register("broken") {
                    gradle.addListener(new BuildAdapter())
                    inputs.property('p', project).optional(true)
                    doLast { }
                }
                tasks.register("ok") {
                    doLast { }
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top