- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 99 for fsync (2.71 sec)
-
docs/en/docs/advanced/dataclasses.md
8. Notice that this *path operation function* uses regular `def` instead of `async def`. As always, in FastAPI you can combine `def` and `async def` as needed. If you need a refresher about when to use which, check out the section _"In a hurry?"_ in the docs about [`async` and `await`](../async.md#in-a-hurry){.internal-link target=_blank}.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/em/docs/tutorial/request-files.md
* `close()`: ๐ ๐. ๐ ๐ซ ๐ฉโ๐ฌ `async` ๐ฉโ๐ฌ, ๐ ๐ช "โ" ๐ซ. ๐ผ, ๐ `async` *โก ๐ ๏ธ ๐ข* ๐ ๐ช ๐ค ๐ โฎ๏ธ: ```Python contents = await myfile.read() ``` ๐ฅ ๐ ๐ ๐ `def` *โก ๐ ๏ธ ๐ข*, ๐ ๐ช ๐ `UploadFile.file` ๐, ๐ผ: ```Python contents = myfile.file.read() ``` !!! note "`async` ๐ก โน" ๐โ ๐ โ๏ธ `async` ๐ฉโ๐ฌ, **FastAPI** ๐ ๐ ๐ฉโ๐ฌ ๐งต & โ ๐ซ. !!! note "๐ ๐ก โน"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 6.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-files.md
* `close()`: ํ์ผ์ ๋ซ์ต๋๋ค. ์๊ธฐ ๋ชจ๋ ๋ฉ์๋๋ค์ด `async` ๋ฉ์๋์ด๊ธฐ ๋๋ฌธ์ โawaitโ์ ์ฌ์ฉํ์ฌ์ผ ํฉ๋๋ค. ์๋ฅผ๋ค์ด, `async` *๊ฒฝ๋ก ์๋ ํจ์*์ ๋ด๋ถ์์ ๋ค์๊ณผ ๊ฐ์ ๋ฐฉ์์ผ๋ก ๋ด์ฉ์ ๊ฐ์ ธ์ฌ ์ ์์ต๋๋ค: ```Python contents = await myfile.read() ``` ๋ง์ฝ ์ผ๋ฐ์ ์ธ `def` *๊ฒฝ๋ก ์๋ ํจ์*์ ๋ด๋ถ๋ผ๋ฉด, ๋ค์๊ณผ ๊ฐ์ด `UploadFile.file` ์ ์ง์ ์ ๊ทผํ ์ ์์ต๋๋ค: ```Python contents = myfile.file.read() ``` !!! note "`async` ๊ธฐ์ ์ ์ธ๋ถ์ฌํญ" `async` ๋ฉ์๋๋ค์ ์ฌ์ฉํ ๋ **FastAPI**๋ ์ค๋ ๋ํ์์ ํ์ผ ๋ฉ์๋๋ค์ ์คํํ๊ณ ๊ทธ๋ค์ ๊ธฐ๋ค๋ฆฝ๋๋ค.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 8.1K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
!!! tip If you want to call `async` functions in your tests apart from sending requests to your FastAPI application (e.g. asynchronous database functions), have a look at the [Async Tests](../advanced/async-tests.md){.internal-link target=_blank} in the advanced tutorial. ## Separating tests
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.2K bytes - Viewed (0) -
docs/de/docs/tutorial/first-steps.md
In diesem Fall handelt es sich um eine `async`-Funktion. --- Sie kรถnnten sie auch als normale Funktion anstelle von `async def` definieren: ```Python hl_lines="7" {!../../../docs_src/first_steps/tutorial003.py!} ``` !!! note "Hinweis" Wenn Sie den Unterschied nicht kennen, lesen Sie [Async: *โIn Eile?โ*](../async.md#in-eile){.internal-link target=_blank}.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jan 13 12:16:22 GMT 2024 - 10.5K bytes - Viewed (0) -
docs/pl/docs/index.md
<details markdown="1"> <summary>Albo uลผyj <code>async def</code>...</summary> Jeลผeli twรณj kod korzysta z `async` / `await`, uลผyj `async def`: ```Python hl_lines="9 14" from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}")
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 19.4K bytes - Viewed (0) -
docs/ru/docs/index.md
<details markdown="1"> <summary>ะะปะธ ะธัะฟะพะปัะทัะนัะต <code>async def</code>...</summary> ะัะปะธ ะฒะฐั ะบะพะด ะธัะฟะพะปัะทัะตั `async` / `await`, ะธัะฟะพะปัะทัะนัะต `async def`: ```Python hl_lines="9 14" from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}")
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 25.8K bytes - Viewed (0) -
docs/it/docs/index.md
<details markdown="1"> <summary>Oppure usa <code>async def</code>...</summary> Se il tuo codice usa `async` / `await`, allora usa `async def`: ```Python hl_lines="7 12" from fastapi import FastAPI from typing import Optional app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") async def read_item(item_id: int, q: Optional[str] = None):
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 23:58:47 GMT 2024 - 19.3K bytes - Viewed (0) -
docs/zh/docs/index.md
``` <details markdown="1"> <summary>ๆ่ ไฝฟ็จ <code>async def</code>...</summary> ๅฆๆไฝ ็ไปฃ็ ้ไผๅบ็ฐ `async` / `await`๏ผ่ฏทไฝฟ็จ `async def`๏ผ ```Python hl_lines="9 14" from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") async def read_item(item_id: int, q: Union[str, None] = None):
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 18.2K bytes - Viewed (0) -
docs/en/docs/tutorial/first-steps.md
In this case, it is an `async` function. --- You could also define it as a normal function instead of `async def`: ```Python hl_lines="7" {!../../../docs_src/first_steps/tutorial003.py!} ``` !!! note If you don't know the difference, check the [Async: *"In a hurry?"*](../async.md#in-a-hurry){.internal-link target=_blank}. ### Step 5: return the content
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 12K bytes - Viewed (0)