Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 471 - 480 of 515 for Fallback (0.31 seconds)

  1. docs/zh-hant/docs/tutorial/dependencies/dependencies-with-yield.md

    你可以使用 `async` 或一般函式。
    
    **FastAPI** 都會正確處理,和一般相依相同。
    
    ///
    
    ## 同時使用 `yield` 與 `try` 的相依 { #a-dependency-with-yield-and-try }
    
    如果在含 `yield` 的相依中使用 `try` 區塊,你會接收到使用該相依時拋出的任何例外。
    
    例如,如果在中途的某段程式碼、其他相依,或某個路徑操作中,讓資料庫交易「rollback」或產生了任何例外,你都會在你的相依中接收到該例外。
    
    因此,你可以在相依內用 `except SomeException` 來攔截特定例外。
    
    同樣地,你可以使用 `finally` 來確保無論是否有例外都會執行結束步驟。
    
    {* ../../docs_src/dependencies/tutorial007_py310.py hl[3,5] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  2. internal/grid/manager.go

    	RoutePath    string
    	TraceTo      *pubsub.PubSub[madmin.TraceInfo, madmin.TraceType]
    	Dialer       ConnDialer
    	// Sign a token for the given audience.
    	AuthFn AuthFn
    	// Callbacks to validate incoming connections.
    	AuthToken ValidateTokenFn
    }
    
    // NewManager creates a new grid manager
    func NewManager(ctx context.Context, o ManagerOptions) (*Manager, error) {
    	found := false
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Nov 12 20:41:41 GMT 2024
    - 10.8K bytes
    - Click Count (0)
  3. internal/s3select/select.go

    	if s3Select.progressReader != nil {
    		return s3Select.progressReader.Stats()
    	}
    
    	return -1, -1
    }
    
    // Open - opens S3 object by using callback for SQL selection query.
    // Currently CSV, JSON and Apache Parquet formats are supported.
    func (s3Select *S3Select) Open(rsc io.ReadSeekCloser) error {
    	offset, length, err := s3Select.ScanRange.StartLen()
    	if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  4. docs/debugging/xl-meta/main.go

    			}
    			s += "}"
    		}
    		res = append(res, []byte(s)...)
    	}
    	res = append(res, '}')
    	return res, nil
    }
    
    // files returns files as callback.
    func (x xlMetaInlineData) files(fn func(name string, data []byte)) error {
    	if len(x) == 0 {
    		return nil
    	}
    	if !x.versionOK() {
    		return errors.New("xlMetaInlineData: unknown version")
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 40.4K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    For example, if some code at some point in the middle, in another dependency or in a *path operation*, made a database transaction "rollback" or created any other exception, you would receive the exception in your dependency.
    
    So, you can look for that specific exception inside the dependency with `except SomeException`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  6. internal/grid/handlers.go

    	// If the request context is canceled, the stream will no longer process requests.
    	Requests chan<- Req
    }
    
    // Results returns the results from the remote server one by one.
    // If any error is returned by the callback, the stream will be canceled.
    // If the context is canceled, the stream will be canceled.
    func (s *TypedStream[Req, Resp]) Results(next func(resp Resp) error) (err error) {
    	return s.responses.Results(func(b []byte) error {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 27.7K bytes
    - Click Count (0)
  7. src/main/webapp/js/admin/plugins/form-validator/jquery.form-validator.min.js

    s";b.modules+=b.modules.length?","+d:d}a(b.form).each(function(c,d){d.validationConfig=b;var e=a(d);e.trigger("formValidationSetup",[e,b]),e.find(".has-help-txt").unbind("focus.validation").unbind("blur.validation"),e.removeClass("has-validation-callback").unbind("submit.validation").unbind("reset.validation").find("input[data-validation],textarea[data-validation]").unbind("blur.validation"),e.bind("submit.validation",function(c){var d=a(this),e=function(){return c.stopImmediatePropagation(),!1}...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 32.8K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    Por exemplo, se algum código em um certo momento no meio, em outra dependência ou em uma *operação de rota*, fizer um "rollback" de uma transação de banco de dados ou causar qualquer outra exceção, você irá capturar a exceção em sua dependência.
    
    Então, você pode procurar por essa exceção específica dentro da dependência com `except AlgumaExcecao`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  9. internal/dsync/drwmutex.go

    				noQuorum, err := refreshLock(ctx, dm.clnt, id, source, quorum)
    				if err == nil && noQuorum {
    					// Clean the lock locally and in remote nodes
    					forceUnlock(ctx, dm.clnt, id)
    					// Execute the caller lock loss callback
    					if lockLossCallback != nil {
    						lockLossCallback()
    					}
    					return
    				}
    
    				refreshTimer.Reset(dm.refreshInterval)
    			}
    		}
    	}()
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

      }
    
      /**
       * This tests for a bug where if {@link Service#stopAsync()} was called while the service was
       * {@link State#STARTING} more than once, the {@link Listener#stopping(State)} callback would get
       * called multiple times.
       */
      public void testManualServiceStopMultipleTimesWhileStarting() throws Exception {
        ManualSwitchedService service = new ManualSwitchedService();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
Back to Top