- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,100 for yield (0.02 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
taskRunner: TaskRunner, nanos: Long, ) { taskRunner.assertThreadHoldsLock() 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 = false
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 29 00:33:04 UTC 2024 - 12.6K bytes - Viewed (0) -
tests/test_tutorial/test_events/test_tutorial001.py
from fastapi.testclient import TestClient @pytest.fixture(name="app", scope="module") def get_app(): with pytest.warns(DeprecationWarning): from docs_src.events.tutorial001 import app yield app def test_events(app: FastAPI): with TestClient(app) as client: response = client.get("/items/foo") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 3.6K bytes - Viewed (0) -
docs_src/sql_databases/tutorial002_an_py39.py
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: Union[int, None] = Field(default=None, index=True) class Hero(HeroBase, table=True): id: Union[int, None] = Field(default=None, primary_key=True) secret_name: str class HeroPublic(HeroBase): id: int
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.5K bytes - Viewed (0) -
tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py
static_dir: Path = Path(os.getcwd()) / "static" print(static_dir) static_dir.mkdir(exist_ok=True) from docs_src.custom_docs_ui.tutorial001 import app with TestClient(app) as client: yield client static_dir.rmdir() def test_swagger_ui_html(client: TestClient): response = client.get("/docs") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu May 23 22:59:02 UTC 2024 - 1.3K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
1. This is the generator function. It's a "generator function" because it contains `yield` statements inside. 2. By using a `with` block, we make sure that the file-like object is closed after the generator function is done. So, after it finishes sending the response. 3. This `yield from` tells the function to iterate over that thing named `file_like`. And then, for each part iterated, yield that part as coming from this generator function (`iterfile`).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs/em/docs/advanced/custom-response.md
```{ .python .annotate hl_lines="2 10-12 14" } {!../../docs_src/custom_response/tutorial008.py!} ``` 1๏ธโฃ. ๐ ๐ ๐ข. โซ๏ธ "๐ ๐ข" โฉ๏ธ โซ๏ธ ๐ `yield` ๐ ๐. 2๏ธโฃ. โ๏ธ `with` ๐ซ, ๐ฅ โ ๐ญ ๐ ๐-๐ ๐ ๐ช โฎ๏ธ ๐ ๐ข ๐จ. , โฎ๏ธ โซ๏ธ ๐ ๐จ ๐จ. 3๏ธโฃ. ๐ `yield from` ๐ฌ ๐ข ๐ ๐คญ ๐ ๐ ๐ `file_like`. & โคด๏ธ, ๐ ๐ ๐, ๐พ ๐ ๐ ๐ โช๏ธโก๏ธ ๐ ๐ ๐ข. , โซ๏ธ ๐ ๐ข ๐ ๐จ "๐ญ" ๐ท ๐ณ ๐ ๐.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.7K bytes - Viewed (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 (documented later), they will run *after* all the middleware. /// ## Create a middleware
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
docs/em/docs/tutorial/middleware.md
* โซ๏ธ ๐ช โคด๏ธ ๐ณ ๐ **๐จ** โ๏ธ ๐ ๐ ๐ช ๐. * โคด๏ธ โซ๏ธ ๐ถโโ๏ธ **๐จ** ๐ ๏ธ ๐ ๐ธ ( *โก ๐ ๏ธ*). * โซ๏ธ โคด๏ธ โ **๐จ** ๐ ๐ธ ( *โก ๐ ๏ธ*). * โซ๏ธ ๐ช ๐ณ ๐ **๐จ** โ๏ธ ๐ ๐ ๐ช ๐. * โคด๏ธ โซ๏ธ ๐จ **๐จ**. /// note | "๐ก โน" ๐ฅ ๐ โ๏ธ ๐ โฎ๏ธ `yield`, ๐ช ๐ ๐ ๐ *โฎ๏ธ* ๐ ๏ธ. ๐ฅ ๐ค ๐ ๐ฅ ๐ (๐ โช), ๐ซ ๐ ๐ *โฎ๏ธ* ๐ ๐ ๏ธ. /// ## โ ๐ ๏ธ โ ๐ ๏ธ ๐ โ๏ธ ๐จโ๐จ `@app.middleware("http")` ๐ ๐ ๐ข. ๐ ๏ธ ๐ข ๐จ: * `request`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.4K bytes - Viewed (0)