Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 109 for AddListener (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          // For each listener we add a task that submits it to the executor directly for the blocking
          // get use case and another task that adds it as a listener to the future to exercise both
          // racing addListener calls and addListener calls completing after the future completes.
          final Runnable listener =
              k % 2 == 0 ? collectResultsRunnable : collectResultsTimedGetRunnable;
          allTasks.add(Executors.callable(listener));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  5. subprojects/build-events/src/main/java/org/gradle/internal/build/event/DefaultBuildEventsListenerRegistry.java

            subscriptions.put(listenerProvider, subscription);
    
            for (Object listener : subscription.getListeners()) {
                listenerManager.addListener(listener);
                if (listener instanceof BuildOperationListener) {
                    buildOperationListenerManager.addListener((BuildOperationListener) listener);
                }
            }
        }
    
        private void processIfBuildService(Provider<?> listenerProvider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 19:34:01 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/service/scopes/VirtualFileSystemServices.java

                    writeListener,
                    statisticsCollector,
                    DirectoryScanner.getDefaultExcludes()
                );
    
                listenerManager.addListener(buildSessionsScopedVirtualFileSystem);
                listenerManager.addListener((OutputChangeListener) buildSessionsScopedVirtualFileSystem::invalidate);
    
                return buildSessionsScopedVirtualFileSystem;
            }
    
            @Provides
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintController.kt

                    writingState.append(fingerprint)
                }
            }
    
        private
        fun addListener(listener: ConfigurationCacheFingerprintWriter) {
            listenerManager.addListener(listener)
            workInputListeners.addListener(listener)
            scriptFileResolverListeners.addListener(listener)
        }
    
        private
        fun removeListener(listener: ConfigurationCacheFingerprintWriter) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          // For each listener we add a task that submits it to the executor directly for the blocking
          // get use case and another task that adds it as a listener to the future to exercise both
          // racing addListener calls and addListener calls completing after the future completes.
          final Runnable listener =
              k % 2 == 0 ? collectResultsRunnable : collectResultsTimedGetRunnable;
          allTasks.add(Executors.callable(listener));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top