- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 235 for teardown (0.27 sec)
-
docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md
# Зависимости с yield FastAPI поддерживает зависимости, которые выполняют некоторые <abbr title='также известные как "exit", "cleanup", "teardown", "close", "context managers", ...'>дополнительные действия после завершения работы</abbr>. Для этого используйте `yield` вместо `return`, а дополнительный код напишите после него. /// tip | Подсказка Обязательно используйте `yield` один-единственный раз. /// /// note | Технические детали
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 18.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
# yieldを持つ依存関係 FastAPIは、いくつかの<abbr title='時々"exit"、"cleanup"、"teardown"、"close"、"context managers"、 ...のように呼ばれる'>終了後の追加のステップ</abbr>を行う依存関係をサポートしています。 これを行うには、`return`の代わりに`yield`を使い、その後に追加のステップを書きます。 /// tip | 豆知識 `yield`は必ず一度だけ使用するようにしてください。 /// /// info | 情報 これを動作させるには、**Python 3.7** 以上を使用するか、**Python 3.6** では"backports"をインストールする必要があります: ``` pip install async-exit-stack async-generator ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 12.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
return clientTestRule } @BeforeEach fun setUp() { platform.assumeNotOpenJSSE() } @AfterEach @Throws(InterruptedException::class) fun tearDown() { clientListener.assertExhausted() } @Test fun textMessage() { webServer.enqueue( MockResponse .Builder() .webSocketUpgrade(serverListener)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
# Dependencies with yield { #dependencies-with-yield } FastAPI supports dependencies that do some <abbr title='sometimes also called "exit code", "cleanup code", "teardown code", "closing code", "context manager exit code", etc.'>extra steps after finishing</abbr>. To do this, use `yield` instead of `return`, and write the extra steps (code) after. /// tip Make sure to use `yield` one single time per dependency. /// /// note | Technical Details
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 12.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt
call = clientTestRule.newClient().newCall( Request .Builder() .url("https://$uriHost:$uriPort/") .build(), ) as RealCall } @AfterEach fun tearDown() { factory.close() } @Test fun singleRoute() { val address = factory.newAddress() val routeSelector = newRouteSelector(address) assertThat(routeSelector.hasNext()).isTrue()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 20.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt
listener.onClosed(this, code, reason!!) } readerToClose?.closeQuietly() } /** For testing: force this web socket to release its threads. */ @Throws(InterruptedException::class) fun tearDown() { taskQueue.shutdown() taskQueue.idleLatch().await(10, TimeUnit.SECONDS) } @Synchronized fun sentPingCount(): Int = sentPingCount
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 21.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
.build() private val executorService = Executors.newScheduledThreadPool(1) @BeforeEach fun setUp() { platform.assumeNotOpenJSSE() platform.assumeHttp2Support() } @AfterEach fun tearDown() { executorService.shutdown() } @Test @Throws(IOException::class) fun http1DoesntSupportDuplex() { val call = client.newCall( Request .Builder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 24.8K bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md
# Dependências com yield O FastAPI possui suporte para dependências que realizam <abbr title='também chamados de "código de saída", "código de cleanup", "código de teardown", "código de finalização", "código de saída para gerenciador de contextos", 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 Garanta que `yield` é utilizado apenas uma vez.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 14.8K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
@Tag("Slow") class MockWebServerTest { @RegisterExtension var platform = PlatformRule() private val server = MockWebServer() @BeforeEach fun setUp() { server.start() } @AfterEach fun tearDown() { server.shutdown() } @Test fun defaultMockResponse() { val response = MockResponse() assertThat(headersToList(response)).containsExactly("Content-Length: 0")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt
*/ private val routePlanner = FakeRoutePlanner(taskFaker = taskFaker) private val finder = FastFallbackExchangeFinder(routePlanner, taskRunner) @AfterEach fun tearDown() { taskFaker.close() routePlanner.close() } @Test fun takeConnectedConnection() { val plan0 = routePlanner.addPlan() plan0.connectState = TLS_CONNECTED
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 20.9K bytes - Viewed (0)