- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 270 for avait (0.02 sec)
-
docs/zh/docs/advanced/dataclasses.md
8. 注意,*路径操作函数*使用的是普通函数,不是异步函数; 与往常一样,在 FastAPI 中,可以按需组合普通函数与异步函数; 如果不清楚何时使用异步函数或普通函数,请参阅**急不可待?**一节中对 <a href="https://fastapi.tiangolo.com/async/#in-a-hurry" target="_blank" class="internal-link">`async` 与 `await`</a> 的说明; 9. *路径操作函数*返回的不是数据类(虽然它可以返回数据类),而是返回内含数据的字典列表; FastAPI 使用(包含数据类的) `response_model` 参数转换响应。 把 `dataclasses` 与其它类型注解组合在一起,可以组成不同形式的复杂数据结构。 更多内容详见上述代码内的注释。 ## 深入学习Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 3.7K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
{* ../../docs_src/app_testing/tutorial001_py39.py hl[2,12,15:18] *} /// tip Notice that the testing functions are normal `def`, not `async def`. And the calls to the client are also normal calls, not using `await`. This allows you to use `pytest` directly without complications. /// /// note | Technical Details You could also use `from starlette.testclient import TestClient`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.1K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparatorTest.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Aug 06 12:03:40 UTC 2025 - 8.9K bytes - Viewed (0) -
docs/uk/docs/tutorial/testing.md
{* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *} /// tip | Порада Зверніть увагу, що тестові функції — це звичайні `def`, а не `async def`. Виклики клієнта також звичайні, без використання `await`. Це дозволяє використовувати `pytest` без зайвих ускладнень. /// /// note | Технічні деталі Ви також можете використовувати `from starlette.testclient import TestClient`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 9.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
fail("") } }, ) assertThat(server.takeRequest().exchangeIndex) .isEqualTo(expectedSequenceNumber) responseDequeuedLatch!!.await() call.cancel() requestCanceledLatch!!.countDown() latch.await() } @Test fun noRecoveryFromRefusedStreamWithRetryDisabled() { noRecoveryFromErrorWithRetryDisabled(ErrorCode.REFUSED_STREAM) } @Test
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 67.4K bytes - Viewed (0) -
docs/fr/docs/advanced/response-directly.md
Pour ces cas, vous pouvez spécifier un appel à `jsonable_encoder` pour convertir vos données avant de les passer à une réponse : {* ../../docs_src/response_directly/tutorial001.py hl[6:7,21:22] *} /// note | Détails techniques Vous pouvez aussi utiliser `from starlette.responses import JSONResponse`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
lock.lock(); try { locked.countDown(); finishLatch.await(1, MINUTES); } catch (InterruptedException e) { fail(e.toString()); } finally { lock.unlock(); } } void waitUntilHoldingLock() throws InterruptedException { locked.await(1, MINUTES); } void releaseLockAndFinish() throws InterruptedException {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 16.2K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java
super.process(consumer); latch.countDown(); } @Override public void waitForProcessed() throws InterruptedException { latch.await(); } }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Feb 06 11:28:05 UTC 2025 - 8.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
// We wait at most 1 second, so we don't ever turn multiple lost threads into // a test timeout failure. val waitTime = (entryTime + 1_000_000_000L - System.nanoTime()) if (!queue.idleLatch().await(waitTime, TimeUnit.NANOSECONDS)) { TaskRunner.INSTANCE.withLock { TaskRunner.INSTANCE.cancelAll() } fail<Unit>("Queue still active after 1000 ms") } } }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 10.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
} }.start(); try { computingSignal.await(); } catch (InterruptedException e) { throw new RuntimeException(e); } map.put(one, two); assertThat(map.get(one)).isSameInstanceAs(two); startSignal.countDown(); try { doneSignal.await(); } catch (InterruptedException e) { throw new RuntimeException(e); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 00:25:21 UTC 2025 - 117.5K bytes - Viewed (0)