Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 90 for AddListener (0.2 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Abstract test case parent for anything implementing {@link ListenableFuture}. Tests the two get
     * methods and the addListener method.
     *
     * @author Sven Mawson
     * @since 10.0
     */
    @GwtIncompatible
    public abstract class AbstractListenableFutureTest extends TestCase {
    
      protected CountDownLatch latch;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 18:30:30 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Abstract test case parent for anything implementing {@link ListenableFuture}. Tests the two get
     * methods and the addListener method.
     *
     * @author Sven Mawson
     * @since 10.0
     */
    @GwtIncompatible
    public abstract class AbstractListenableFutureTest extends TestCase {
    
      protected CountDownLatch latch;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 18:30:30 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. 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)
  10. platforms/core-runtime/build-state/src/test/java/org/gradle/internal/session/BuildSessionStateTest.groovy

        }
    
        def "does nothing when function does nothing"() {
            def listener = Mock(BuildSessionLifecycleListener)
            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: Mon May 13 21:54:27 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top