- Sort Score
- Num 10 results
- Language All
Results 591 - 600 of 1,104 for Async (0.02 seconds)
-
docs/tr/docs/tutorial/request-files.md
* Bu, özellikle bir kez `await myfile.read()` çalıştırdıysanız ve sonra içeriği yeniden okumaya ihtiyaç duyuyorsanız faydalıdır. * `close()`: Dosyayı kapatır. Bu method’ların hepsi `async` olduğundan, bunları "await" etmeniz gerekir. Örneğin, bir `async` *path operation function* içinde içeriği şöyle alabilirsiniz: ```Python contents = await myfile.read() ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 7.5K bytes - Click Count (0) -
docs/de/docs/tutorial/server-sent-events.md
/// ### Nicht-async-*Pfadoperation-Funktionen* { #non-async-path-operation-functions } Sie können auch normale `def`-Funktionen (ohne `async`) verwenden und `yield` genauso einsetzen. FastAPI stellt sicher, dass sie korrekt ausgeführt wird, sodass sie die Event Loop nicht blockiert. Da die Funktion in diesem Fall nicht async ist, wäre der passende Rückgabetyp `Iterable[Item]`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:48:21 GMT 2026 - 5.1K bytes - Click Count (0) -
docs/fr/docs/advanced/dataclasses.md
8. Notez que cette *fonction de chemin d'accès* utilise un `def` classique au lieu de `async def`. Comme toujours, avec FastAPI vous pouvez combiner `def` et `async def` selon vos besoins. Si vous avez besoin d'un rappel sur quand utiliser l'un ou l'autre, consultez la section _« In a hurry? »_ dans la documentation à propos de [`async` et `await`](../async.md#in-a-hurry).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 4.7K bytes - Click Count (0) -
docs/de/docs/tutorial/stream-json-lines.md
/// ### Nicht-async *Pfadoperation-Funktionen* { #non-async-path-operation-functions } Sie können auch normale `def`-Funktionen (ohne `async`) verwenden und `yield` auf die gleiche Weise einsetzen. FastAPI stellt sicher, dass sie korrekt ausgeführt werden, sodass der Event Loop nicht blockiert wird. Da die Funktion in diesem Fall nicht async ist, wäre der richtige Rückgabetyp `Iterable[Item]`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:48:21 GMT 2026 - 4.9K bytes - Click Count (0) -
docs/ru/docs/tutorial/request-files.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 11.4K bytes - Click Count (0) -
docs/zh/docs/advanced/dataclasses.md
7. 这里的 `response_model` 使用了 “`Author` 数据类列表” 的类型注解。 同样,你可以将 `dataclasses` 与标准类型注解组合使用。 8. 注意,这个 *路径操作函数* 使用的是常规的 `def` 而不是 `async def`。 一如既往,在 FastAPI 中你可以按需组合 `def` 和 `async def`。 如果需要回顾何时用哪一个,请查看关于 [`async` 和 `await`](../async.md#in-a-hurry) 的文档中的 _“急不可待?”_ 一节。 9. 这个 *路径操作函数* 返回的不是数据类(当然也可以返回数据类),而是包含内部数据的字典列表。 FastAPI 会使用(包含数据类的)`response_model` 参数来转换响应。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.9K bytes - Click Count (0) -
docs/tr/docs/tutorial/stream-json-lines.md
/// ### Async Olmayan path operation function'lar { #non-async-path-operation-functions } `async` olmadan normal `def` fonksiyonları da kullanabilir ve aynı şekilde `yield` yazabilirsiniz. FastAPI, event loop’u bloklamayacak şekilde doğru çalışmasını garanti eder. Bu durumda fonksiyon async olmadığı için doğru dönüş tipi `Iterable[Item]` olur:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:51:35 GMT 2026 - 4.6K bytes - Click Count (0) -
tests/test_strict_content_type_router_level.py
router_default = APIRouter(prefix="/default") @router_lax.post("/items/") async def router_lax_post(data: dict): return data @router_strict.post("/items/") async def router_strict_post(data: dict): return data @router_default.post("/items/") async def router_default_post(data: dict): return data app.include_router(router_lax)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 1.7K bytes - Click Count (0) -
cmd/common-main.go
func contextCanceled(ctx context.Context) bool { select { case <-ctx.Done(): return true default: return false } } // bgContext returns a context that can be used for async operations. // Cancellation/timeouts are removed, so parent cancellations/timeout will // not propagate from parent. // Context values are preserved. // This can be used for goroutines that live beyond the parent context.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 32.5K bytes - Click Count (3) -
docs/pt/docs/tutorial/dependencies/index.md
## `Async` ou não, eis a questão { #to-async-or-not-to-async } Como as dependências também serão chamadas pelo **FastAPI** (da mesma forma que *funções de operação de rota*), as mesmas regras se aplicam ao definir suas funções. Você pode utilizar `async def` ou apenas `def`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 10.6K bytes - Click Count (0)