Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 308 for tearDown (0.07 seconds)

  1. docs/tr/docs/tutorial/dependencies/dependencies-with-yield.md

    # `yield` ile Dependency'ler { #dependencies-with-yield }
    
    FastAPI, işini bitirdikten sonra <dfn title='bazen "exit code", "cleanup code", "teardown code", "closing code", "context manager exit code" vb. olarak da adlandırılır'>ek adımlar</dfn> çalıştıran dependency'leri destekler.
    
    Bunu yapmak için `return` yerine `yield` kullanın ve ek adımları (kodu) `yield` satırından sonra yazın.
    
    /// tip | İpucu
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

      public void setUp() throws Exception {
        super.setUp();
        logHandler = new TestLogHandler();
        LocalCache.logger.addHandler(logHandler);
      }
    
      @Override
      public void tearDown() throws Exception {
        super.tearDown();
        LocalCache.logger.removeHandler(logHandler);
      }
    
      private Throwable popLoggedThrowable() {
        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

      public void setUp() throws Exception {
        super.setUp();
        logHandler = new TestLogHandler();
        LocalCache.logger.addHandler(logHandler);
      }
    
      @Override
      public void tearDown() throws Exception {
        super.tearDown();
        LocalCache.logger.removeHandler(logHandler);
      }
    
      private Throwable popLoggedThrowable() {
        List<LogRecord> logRecords = logHandler.getStoredLogRecords();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

      @Override
      public void setUp() throws Exception {
        super.setUp();
        logHandler = new TestLogHandler();
        LocalCache.logger.addHandler(logHandler);
      }
    
      @Override
      public void tearDown() throws Exception {
        super.tearDown();
        /*
         * TODO(cpovirk): Run tests in another thread instead of messing with main thread's interrupted
         * status.
         */
        Thread.interrupted();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/dependencies/dependencies-with-yield.md

    # Dependencias con yield { #dependencies-with-yield }
    
    FastAPI admite dependencias que realizan algunos <dfn 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</dfn>.
    
    Para hacer esto, usa `yield` en lugar de `return`, y escribe los pasos adicionales (código) después.
    
    /// tip | Consejo
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

          client =
            clientTestRule
              .newClientBuilder()
              .protocols(listOf(Protocol.H2_PRIOR_KNOWLEDGE))
              .build()
          scheme = "http"
        }
      }
    
      @AfterEach fun tearDown() {
    //    TODO reenable after https://github.com/square/okhttp/issues/8206
    //    fileSystem.checkNoOpenFiles()
        cache.close()
    
        java.net.Authenticator.setDefault(null)
      }
    
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      @Override
      public void tearDown() throws Exception {
        /*
         * Clear interrupt for future tests.
         *
         * (Ideally we would perform interrupts only in threads that we create, but
         * it's hard to imagine that anything will break in practice.)
         */
        clearInterrupt();
        aggregateFutureLogger.removeHandler(aggregateFutureLogHandler);
        super.tearDown();
      }
    
      /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      @Override
      public void tearDown() throws Exception {
        /*
         * Clear interrupt for future tests.
         *
         * (Ideally we would perform interrupts only in threads that we create, but
         * it's hard to imagine that anything will break in practice.)
         */
        clearInterrupt();
        aggregateFutureLogger.removeHandler(aggregateFutureLogHandler);
        super.tearDown();
      }
    
      /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/dependencies/dependencies-with-yield.md

    # Utiliser des dépendances avec `yield` { #dependencies-with-yield }
    
    FastAPI prend en charge des dépendances qui effectuent des <dfn title='parfois aussi appelées « exit code », « cleanup code », « teardown code », « closing code », « context manager exit code », etc.'>étapes supplémentaires après l'exécution</dfn>.
    
    Pour cela, utilisez `yield` au lieu de `return`, et écrivez les étapes supplémentaires (code) après.
    
    /// tip | Astuce
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

    import org.junit.jupiter.api.Timeout
    
    @Timeout(5)
    @Tag("Slow")
    class Http2ConnectionTest {
      private val peer = MockHttp2Peer()
      private val taskFaker = TaskFaker()
    
      @AfterEach fun tearDown() {
        peer.close()
        taskFaker.close()
      }
    
      @Test fun serverPingsClientHttp2() {
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // ACK
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 75.5K bytes
    - Click Count (0)
Back to Top