Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 182 for callbackasm (0.14 sec)

  1. subprojects/core/src/main/java/org/gradle/initialization/DefaultBuildCancellationToken.java

                if (!cancelled) {
                    callbacks.add(cancellationHandler);
                }
            }
            if (returnValue) {
                cancellationHandler.run();
            }
            return returnValue;
        }
    
        @Override
        public void removeCallback(Runnable cancellationHandler) {
            synchronized (lock) {
                callbacks.remove(cancellationHandler);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  2. tests/hooks_test.go

    		t.Fatalf("An error from before save callbacks happened when update with invalid value")
    	}
    
    	p3 := Product{Code: "dont_delete", Price: 100}
    	DB.Save(&p3)
    	if DB.Delete(&p3).Error == nil {
    		t.Fatalf("An error from before delete callbacks happened when delete")
    	}
    
    	if DB.Where("Code = ?", "dont_delete").First(&p3).Error != nil {
    		t.Fatalf("An error from before delete callbacks happened")
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  3. finisher_api.go

    	return tx
    }
    
    // Update updates column with value using callbacks. Reference: https://gorm.io/docs/update.html#Update-Changed-Fields
    func (db *DB) Update(column string, value interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.Dest = map[string]interface{}{column: value}
    	return tx.callbacks.Update().Execute(tx)
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/initialization/DefaultBuildCancellationTokenSpec.groovy

            token.addCallback(callback1)
    
            when:
            token.cancel()
    
            then:
            token.cancellationRequested
            1 * callback1.run()
            token.callbacks.empty
        }
    
        def 'cancel notifies callbacks even if exception is thrown'() {
            def token = new DefaultBuildCancellationToken()
            def ex = new IllegalStateException('testing')
    
            def callback1 = Mock(Runnable)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 23 09:27:48 UTC 2015
    - 3.7K bytes
    - Viewed (0)
  5. tests/test_include_router_defaults_overrides.py

        default_response_class=ResponseLevel4,
        callbacks=callback_router4.routes,
        deprecated=True,
    )
    router4_default = APIRouter()
    
    
    @app.get(
        "/override1",
        tags=["path1a", "path1b"],
        responses={
            401: {"description": "Client error level 1"},
            501: {"description": "Server error level 1"},
        },
        deprecated=True,
        callbacks=callback_router1.routes,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 358.6K bytes
    - Viewed (0)
  6. pkg/kube/kclient/crdwatcher.go

    }
    
    func (c *crdWatcher) Reconcile(key types.NamespacedName) error {
    	c.mutex.Lock()
    	callbacks, f := c.callbacks[key.Name]
    	if !f {
    		c.mutex.Unlock()
    		return nil
    	}
    	// Delete them so we do not run again
    	delete(c.callbacks, key.Name)
    	c.mutex.Unlock()
    	for _, cb := range callbacks {
    		cb()
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

                }
            }
    
            and:
            addToContainer(b)
    
            then:
            def callbacks = buildOperationRunner.log.all(ExecuteDomainObjectCollectionCallbackBuildOperationType)
            callbacks.size() == 3
            callbacks[1].details.applicationId == id1.longValue()
            callbacks[2].details.applicationId == id2.longValue()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  8. fastapi/openapi/utils.py

                    )
                    if request_body_oai:
                        operation["requestBody"] = request_body_oai
                if route.callbacks:
                    callbacks = {}
                    for callback in route.callbacks:
                        if isinstance(callback, routing.APIRoute):
                            (
                                cb_path,
                                cb_security_schemes,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/DevelocityBuildLifecycleService.java

    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    /**
     * Features for Develocity used during settings configuration to register lifecycle callbacks.
     * <p>
     * This service is for lifecycle callbacks that don't have a stable API, yet,
     * to not break the Develocity plugin going forward.
     *
     * @since 8.8
     */
    @ServiceScope(Scope.Build.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 20:25:05 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. testing/integ-test/src/integTest/groovy/org/gradle/integtests/configuration/ExecuteDomainObjectCollectionCallbackBuildOperationTypeIntegrationTest.groovy

            findCallbackActionBuildOp('script repo callback').details.applicationId == settingsScriptApplicationId.details.applicationId
        }
    
        def "applicationIds for container callbacks registered in beforeResolve and afterResolve callbacks are emitted correctly"() {
            given:
            file('callback.gradle') << """
                configurations {
                    foo {
                        incoming.beforeResolve {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top