- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 1,598 for yield (0.18 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
taskRunner: TaskRunner, nanos: Long, ) { taskRunner.assertLockHeld() check(waitingCoordinatorTask == null) if (nanos == 0L) return // Yield until notified, interrupted, or the duration elapses. val waitUntil = nanoTime + nanos val self = currentTask waitingCoordinatorTask = self waitingCoordinatorNotified = falseCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 11.9K bytes - Click Count (0) -
src/main/java/jcifs/util/Encdec.java
t = (date.getTime() + SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L; yield enc_uint64be(t, dst, di); } case TIME_1601_NANOS_64LE -> { t = (date.getTime() + SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L; yield enc_uint64le(t, dst, di); } case TIME_1970_MILLIS_64BE -> enc_uint64be(date.getTime(), dst, di);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 17.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/stream-json-lines.md
/// tip 如果你想串流二進位資料,例如影像或音訊,請參考進階指南:[串流資料](../advanced/stream-data.md)。 /// ## 使用 FastAPI 串流 JSON Lines { #stream-json-lines-with-fastapi } 要用 FastAPI 串流 JSON Lines,你可以在你的*路徑操作函式*中改用 `yield` 逐一產生項目,而不是用 `return`。 {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *} 如果你要回傳的每個 JSON 項目型別都是 `Item`(一個 Pydantic 模型),而且該函式是 async,你可以將回傳型別宣告為 `AsyncIterable[Item]`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:33:04 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/zh/docs/tutorial/stream-json-lines.md
/// tip | 提示 如果你想流式传输二进制数据,例如视频或音频,请查看进阶指南:[流式传输数据](../advanced/stream-data.md)。 /// ## 使用 FastAPI 流式传输 JSON Lines { #stream-json-lines-with-fastapi } 要在 FastAPI 中流式传输 JSON Lines,可以在路径操作函数中不用 `return`,而是用 `yield` 逐个产生每个数据项。 {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *} 如果你要返回的每个 JSON 项是类型 `Item`(一个 Pydantic 模型),并且这是一个异步函数,你可以将返回类型声明为 `AsyncIterable[Item]`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 4.2K bytes - Click Count (0) -
src/main/java/jcifs/smb1/util/Encdec.java
case TIME_1601_NANOS_64BE -> { t = (date.getTime() + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L; yield enc_uint64be(t, dst, di); } case TIME_1601_NANOS_64LE -> { t = (date.getTime() + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L; yield enc_uint64le(t, dst, di); } case TIME_1970_MILLIS_64BE -> enc_uint64be(date.getTime(), dst, di);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 18.5K bytes - Click Count (0) -
docs_src/sql_databases/tutorial002_an_py310.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class HeroBase(SQLModel): name: str = Field(index=True) age: int | None = Field(default=None, index=True) class Hero(HeroBase, table=True): id: int | None = Field(default=None, primary_key=True) secret_name: str class HeroPublic(HeroBase): id: int
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 2.5K bytes - Click Count (0) -
docs/ja/docs/tutorial/stream-json-lines.md
動画や音声などのバイナリデータをストリームしたい場合は、上級ガイドを参照してください: [データのストリーム](../advanced/stream-data.md)。 /// ## FastAPI で JSON Lines をストリームする { #stream-json-lines-with-fastapi } FastAPI で JSON Lines をストリームするには、*path operation 関数*で `return` を使う代わりに、`yield` を使って各アイテムを順に生成します。 {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *} 送り返す各 JSON アイテムが `Item`(Pydantic モデル)型で、関数が async の場合、戻り値の型を `AsyncIterable[Item]` と宣言できます:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:55:22 GMT 2026 - 5.1K bytes - Click Count (0) -
docs/features/calls.md
## [Calls](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-call/)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 3.9K bytes - Click Count (0) -
docs/en/docs/advanced/custom-response.md
Takes an async generator or a normal generator/iterator (a function with `yield`) and streams the response body. {* ../../docs_src/custom_response/tutorial007_py310.py hl[3,16] *} /// note | Technical Details An `async` task can only be cancelled when it reaches an `await`. If there is no `await`, the generator (function with `yield`) can not be cancelled properly and may keep running even after cancellation is requested.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/en/docs/tutorial/middleware.md
* It can do something to that **response** or run any needed code. * Then it returns the **response**. /// note | Technical Details If you have dependencies with `yield`, the exit code will run *after* the middleware. If there were any background tasks (covered in the [Background Tasks](background-tasks.md) section, you will see it later), they will run *after* all the middleware. ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 3.9K bytes - Click Count (0)