Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,310 for effects (0.32 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java

             */
            <R> Value<R> transform(Transformer<? extends R, ? super T> transformer);
    
            /**
             * Returns a value attaching the given side effect.
             * <p>
             * A {@link #isMissing() missing} value never carries a side effect.
             * If the value is present and already has a side effect, then side effects are composed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 20:31:29 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/impl/DefaultDevelocityBuildLifecycleService.java

            // - `allprojects` executes eagerly before any project has been evaluated, allowing its effects
            //   to be observable from other eager configuration blocks (e.g., `subprojects { ... }`).
            // - `lifecycle.beforeProject` executes just before each project is evaluated. Therefore, its effects
            //   are not observable from eager configuration blocks, which would anyway be incompatible with
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 21:44:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. test/phiopt.go

    }
    
    //go:noinline
    func f6or(a int, b bool) bool {
    	x := b
    	if a == 0 {
    		// f6or has side effects so the OpPhi should not be converted.
    		x = f6or(a, b)
    	}
    	return x
    }
    
    //go:noinline
    func f6and(a int, b bool) bool {
    	x := b
    	if a == 0 {
    		// f6and has side effects so the OpPhi should not be converted.
    		x = f6and(a, b)
    	}
    	return x
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MergeProviderTest.groovy

            def provider2 = new MergeProvider([providers.provider { null }, providers.provider { new Object() }])
    
            expect:
            !provider1.isPresent()
            !provider2.isPresent()
        }
    
        def "runs side effects"() {
            given:
            def leftSideEffect = Mock(ValueSupplier.SideEffect)
            def rightSideEffect = Mock(ValueSupplier.SideEffect)
            def mergedSideEffect = Mock(ValueSupplier.SideEffect)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 22:25:49 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderSpec.groovy

            provider.calculateExecutionTimeValue()
    
            then:
            0 * _ // no side effects when values are not unpacked
    
            when:
            provider.get()
    
            then:
            thrown(IllegalStateException)
            0 * sideEffect.execute(_)
            0 * _
        }
    
        def "runs chained side effects when calling '#method' on provider with value"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 06:53:07 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

    // `ops_to_preserve_ids_` or if it has a `MustExecute` effect.
    bool GraphPruningPass::ShouldPreserveOp(Operation* op) {
      if (ops_to_preserve_ids_.contains(op->getName().getIdentifier())) return true;
    
      llvm::SmallVector<MemoryEffects::EffectInstance, 4> effects;
      auto interface = dyn_cast<MemoryEffectOpInterface>(op);
      if (interface) interface.getEffects(effects);
    
      for (const auto& effect : effects) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  7. test/fixedbugs/issue15303.go

    // Copyright 2016 The Go Authors.  All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Ensure that inlined struct/array comparisons have the right side-effects.
    
    package main
    
    import "os"
    
    func main() {
    	var x int
    	f := func() (r [4]int) {
    		x++
    		return
    	}
    	_ = f() == f()
    	if x != 2 {
    		println("f evaluated ", x, " times, want 2")
    		os.Exit(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 25 17:51:10 UTC 2016
    - 437 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py

            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app_py39.tests import test_sql_app
    
        # Ensure import side effects are re-executed
        importlib.reload(test_sql_app)
        test_sql_app.test_create_user()
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 822 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_sql_databases/test_testing_databases.py

            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app.tests import test_sql_app
    
        # Ensure import side effects are re-executed
        importlib.reload(test_sql_app)
        test_sql_app.test_create_user()
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 788 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/doc.go

    // results of calls to certain pure functions.
    //
    // # Analyzer unusedresult
    //
    // unusedresult: check for unused results of calls to some functions
    //
    // Some functions like fmt.Errorf return a result and have no side
    // effects, so it is always a mistake to discard the result. Other
    // functions may return an error that must not be ignored, or a cleanup
    // operation that must be called. This analyzer reports calls to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 793 bytes
    - Viewed (0)
Back to top