Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 182 for callbackasm (0.2 sec)

  1. fastapi/applications.py

                    [FastAPI docs for OpenAPI Callbacks](https://fastapi.tiangolo.com/advanced/openapi-callbacks/).
                    """
                ),
            ] = None,
            webhooks: Annotated[
                Optional[routing.APIRouter],
                Doc(
                    """
                    Add OpenAPI webhooks. This is similar to `callbacks` but it doesn't
                    depend on specific *path operations*.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  2. pilot/pkg/leaderelection/k8sleaderelection/leaderelection.go

    	// immediately be notified they have lost the leader election.
    	KeyComparison KeyComparisonFunc
    
    	// Callbacks are callbacks that are triggered during certain lifecycle
    	// events of the LeaderElector
    	Callbacks LeaderCallbacks
    
    	// WatchDog is the associated health checker
    	// WatchDog may be null if its not needed/configured.
    	WatchDog *HealthzAdaptor
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  3. tests/test_additional_responses_custom_model_in_callback.py

    
    @callback_router.get(
        "{$callback_url}/callback/", responses={400: {"model": CustomModel}}
    )
    def callback_route():
        pass  # pragma: no cover
    
    
    @app.post("/", callbacks=callback_router.routes)
    def main_route(callback_url: HttpUrl):
        pass  # pragma: no cover
    
    
    client = TestClient(app)
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. fastapi/routing.py

                        current_dependencies.extend(route.dependencies)
                    current_callbacks = []
                    if callbacks:
                        current_callbacks.extend(callbacks)
                    if route.callbacks:
                        current_callbacks.extend(route.callbacks)
                    current_generate_unique_id = get_value_or_default(
                        route.generate_unique_id_function,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 170.1K bytes
    - Viewed (0)
  5. tensorflow/cc/training/queue_runner.cc

      return (*result)->Init(queue_runner_def);
    }
    
    void QueueRunner::AddErrorCallback(const std::function<void(Status)>& cb) {
      mutex_lock l(cb_mu_);
      callbacks_.push_back(cb);
    }
    
    void QueueRunner::ClearErrorCallbacks() {
      mutex_lock l(cb_mu_);
      callbacks_.clear();
    }
    
    Status QueueRunner::Init(const QueueRunnerDef& queue_runner_def) {
      queue_name_ = queue_runner_def.queue_name();
      enqueue_op_names_.clear();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. src/runtime/zcallback_windows.go

    // Code generated by wincallback.go using 'go generate'. DO NOT EDIT.
    
    package runtime
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 18 22:18:23 UTC 2018
    - 155 bytes
    - Viewed (0)
  7. tests/test_sub_callbacks.py

    
    @events_callback_router.get("{$callback_url}/events/{$request.body.title}")
    def event_callback(event: Event):
        pass  # pragma: nocover
    
    
    subrouter = APIRouter()
    
    
    @subrouter.post("/invoices/", callbacks=invoices_callback_router.routes)
    def create_invoice(invoice: Invoice, callback_url: Optional[HttpUrl] = None):
        """
        Create an invoice.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/stream_executor/stream_executor.h

    typedef struct SP_PlatformFns {
      size_t struct_size;
    
      void* ext;  // reserved for future use
    
      // Callbacks for getting device count
      void (*get_device_count)(const SP_Platform* platform, int* device_count,
                               TF_Status* status);
      // Callbacks for creating/destroying SP_Device.
      void (*create_device)(const SP_Platform* platform,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 08:40:35 UTC 2022
    - 21.6K bytes
    - Viewed (0)
  9. callbacks/row.go

    package callbacks
    
    import (
    	"gorm.io/gorm"
    )
    
    func RowQuery(db *gorm.DB) {
    	if db.Error == nil {
    		BuildQuerySQL(db)
    		if db.DryRun || db.Error != nil {
    			return
    		}
    
    		if isRows, ok := db.Get("rows"); ok && isRows.(bool) {
    			db.Statement.Settings.Delete("rows")
    			db.Statement.Dest, db.Error = db.Statement.ConnPool.QueryContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    		} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 08 05:40:41 UTC 2023
    - 581 bytes
    - Viewed (0)
  10. callbacks/transaction.go

    package callbacks
    
    import (
    	"gorm.io/gorm"
    )
    
    func BeginTransaction(db *gorm.DB) {
    	if !db.Config.SkipDefaultTransaction && db.Error == nil {
    		if tx := db.Begin(); tx.Error == nil {
    			db.Statement.ConnPool = tx.Statement.ConnPool
    			db.InstanceSet("gorm:started_transaction", true)
    		} else if tx.Error == gorm.ErrInvalidTransaction {
    			tx.Error = nil
    		} else {
    			db.Error = tx.Error
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Nov 29 01:33:20 UTC 2021
    - 675 bytes
    - Viewed (0)
Back to top