Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 190 for yielded (0.04 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

              }
            });
    
        // Run those tasks together.
        fakePool.runAll();
    
        // Check that the interruption of a SequentialExecutor's task is restored to the thread once
        // it is yielded. Clear the bit while checking so that the test doesn't hose JUnit or some other
        // test case.
        assertThat(Thread.interrupted()).isTrue();
      }
    
      public void testInterrupt_doesNotStopExecution() {
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/advanced-dependencies.md

    ///
    
    Dependências com `yield` evoluíram ao longo do tempo para contemplar diferentes casos de uso e corrigir alguns problemas, aqui está um resumo do que mudou.
    
    ### Dependências com `yield` e `scope` { #dependencies-with-yield-and-scope }
    
    Na versão 0.121.0, o FastAPI adicionou suporte a `Depends(scope="function")` para dependências com `yield`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 10K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/advanced-dependencies.md

    And when using `Depends(scope="request")` (the default), the exit code after `yield` is executed after the response is sent.
    
    You can read more about it in the docs for [Dependencies with `yield` - Early exit and `scope`](../tutorial/dependencies/dependencies-with-yield.md#early-exit-and-scope).
    
    ### Dependencies with `yield` and `StreamingResponse`, Technical Details { #dependencies-with-yield-and-streamingresponse-technical-details }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Nov 13 07:37:15 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

              }
            });
    
        // Run those tasks together.
        fakePool.runAll();
    
        // Check that the interruption of a SequentialExecutor's task is restored to the thread once
        // it is yielded. Clear the bit while checking so that the test doesn't hose JUnit or some other
        // test case.
        assertThat(Thread.interrupted()).isTrue();
      }
    
      public void testInterrupt_doesNotStopExecution() {
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    O **FastAPI** possui suporte para dependências que realizam <abbr title='às vezes também chamado de "código de saída", "código de limpeza", "código de teardown", "código de fechamento", "código de saída do gerenciador de contexto", etc.'>alguns passos extras ao finalizar</abbr>.
    
    Para fazer isso, utilize `yield` em vez de `return`, e escreva os passos extras (código) depois.
    
    /// tip | Dica
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    ## A database dependency with `yield` { #a-database-dependency-with-yield }
    
    For example, you could use this to create a database session and close it after finishing.
    
    Only the code prior to and including the `yield` statement is executed before creating a response:
    
    {* ../../docs_src/dependencies/tutorial007_py39.py hl[2:4] *}
    
    The yielded value is what is injected into *path operations* and other dependencies:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md

    사실, FastAPI는 내부적으로 이 두 데코레이터를 사용합니다.
    
    ///
    
    ## `yield`를 사용하는 데이터베이스 의존성
    
    예를 들어, 이 기능을 사용하면 데이터베이스 세션을 생성하고 작업이 끝난 후에 세션을 종료할 수 있습니다.
    
    응답을 생성하기 전에는 `yield`문을 포함하여 그 이전의 코드만이 실행됩니다:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[2:4] *}
    
    yield된 값은 *경로 작업* 및 다른 의존성들에 주입되는 값 입니다:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[4] *}
    
    `yield`문 다음의 코드는 응답을 생성한 후 보내기 전에 실행됩니다:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Feb 09 14:54:09 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. schema/index_test.go

    			Fields: []schema.IndexOption{
    				{Field: &schema.Field{Name: "FieldD"}},
    				// Note: Duplicate Columns
    				{Field: &schema.Field{Name: "FieldD"}},
    			},
    		},
    		{
    			Name:  "uniq_field_e1_e2",
    			Class: "UNIQUE",
    			Fields: []schema.IndexOption{
    				{Field: &schema.Field{Name: "FieldE1"}},
    				{Field: &schema.Field{Name: "FieldE2"}},
    			},
    		},
    		{
    			Name:  "uniq_field_f1_f2",
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Dec 06 02:27:44 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/dependencies/dependencies-with-yield.md

    FastAPI admite dependencias que realizan algunos <abbr title='a veces también llamado "código de salida", "código de limpieza", "código de teardown", "código de cierre", "código de salida del context manager", etc.'>pasos adicionales después de finalizar</abbr>.
    
    Para hacer esto, usa `yield` en lugar de `return`, y escribe los pasos adicionales (código) después.
    
    /// tip | Consejo
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    # Зависимости с yield { #dependencies-with-yield }
    
    FastAPI поддерживает зависимости, которые выполняют некоторые <abbr title='иногда также называемые "exit code", "cleanup code", "teardown code", "closing code", "context manager exit code" и т.п.'>дополнительные шаги после завершения</abbr>.
    
    Для этого используйте `yield` вместо `return`, а дополнительные шаги (код) напишите после него.
    
    /// tip | Подсказка
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top