- Sort Score
- Num 10 results
- Language All
Results 621 - 630 of 795 for asyncId (0.07 seconds)
-
docs/ko/docs/index.md
``` <details markdown="1"> <summary>또는 <code>async def</code> 사용하기...</summary> 여러분의 코드가 `async` / `await`을 사용한다면, `async def`를 사용하십시오: ```Python hl_lines="7 12" 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: str | None = None):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 23.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/stream-json-lines.md
如果你声明了返回类型,FastAPI 会用它来验证数据、在 OpenAPI 中生成文档、进行过滤,并使用 Pydantic 进行序列化。 /// tip | 提示 由于 Pydantic 会在 Rust 侧进行序列化,如果你声明了返回类型,将获得更高的性能。 /// ### 非异步的*路径操作函数* { #non-async-path-operation-functions } 你也可以使用常规的 `def` 函数(不带 `async`),并以同样的方式使用 `yield`。 FastAPI 会确保其正确运行,不会阻塞事件循环。 因为这个函数不是异步的,合适的返回类型是 `Iterable[Item]`: {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *}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) -
docs/ru/docs/tutorial/testing.md
{* ../../docs_src/app_testing/tutorial001_py310.py hl[2,12,15:18] *} /// tip | Подсказка Обратите внимание, что тестирующая функция является обычной `def`, а не асинхронной `async def`. И вызов клиента также осуществляется без `await`. Это позволяет вам использовать `pytest` без лишних усложнений. /// /// note | Технические деталиCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 9.5K bytes - Click Count (0) -
docs/ru/docs/deployment/manually.md
/// tip | Совет С добавлением `standard` Uvicorn установит и будет использовать ряд рекомендованных дополнительных зависимостей. В их числе `uvloop` — высокопроизводительная замена `asyncio`, дающая серьёзный прирост производительности при параллельной работе. Если вы устанавливаете FastAPI, например так: `pip install "fastapi[standard]"`, вы уже получаете и `uvicorn[standard]`. ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 9.4K bytes - Click Count (0) -
docs/ru/docs/tutorial/first-steps.md
В данном случае это асинхронная (`async`) функция. --- Вы также можете определить её как обычную функцию вместо `async def`: {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *} /// note | Примечание Если вы не знаете, в чём разница, посмотрите [Асинхронность: *"Нет времени?"*](../async.md#in-a-hurry). ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 18.7K bytes - Click Count (0) -
internal/event/target/nats.go
JetStream struct { Enable bool `json:"enable"` } `json:"jetStream"` Streaming struct { Enable bool `json:"enable"` ClusterID string `json:"clusterID"` Async bool `json:"async"` MaxPubAcksInflight int `json:"maxPubAcksInflight"` } `json:"streaming"` RootCAs *x509.CertPool `json:"-"` } // Validate NATSArgs fields func (n NATSArgs) Validate() error {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Apr 27 04:30:57 GMT 2025 - 13.5K bytes - Click Count (0) -
tensorflow/c/eager/immediate_execution_operation.h
virtual absl::Status InputLength(const char* input_name, int* length) = 0; virtual absl::Status OutputLength(const char* output_name, int* length) = 0; // Set stack trace to be used for potential async error reporting. virtual void SetStackTrace(ManagedStackTrace stack_trace) = 0; virtual const tensorflow::AbstractOpAttrs* GetOpAttrs() const = 0; virtual void AddAttrs(const AbstractOpAttrs* op_attrs) = 0;
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 3.6K bytes - Click Count (0) -
cmd/metrics-v3-cluster-notification.go
notificationEventsSkippedTotal = "events_skipped_total" ) var ( notificationCurrentSendInProgressMD = NewCounterMD(notificationCurrentSendInProgress, "Number of concurrent async Send calls active to all targets") notificationEventsErrorsTotalMD = NewCounterMD(notificationEventsErrorsTotal, "Events that were failed to be sent to the targets")
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 24 04:10:35 GMT 2024 - 2.2K bytes - Click Count (0) -
docs/ja/docs/tutorial/background-tasks.md
## タスク関数の作成 { #create-a-task-function } バックグラウンドタスクとして実行される関数を作成します。 これは、パラメーターを受け取ることができる単なる標準的な関数です。 これは `async def` または通常の `def` 関数であり、**FastAPI** はこれを正しく処理します。 ここで、タスク関数はファイル書き込みを実行します (メール送信のシミュレーション)。 また、書き込み操作では `async` と `await` を使用しないため、通常の `def` で関数を定義します。 {* ../../docs_src/background_tasks/tutorial001_py310.py hl[6:9] *} ## バックグラウンドタスクの追加 { #add-the-background-task }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 5.8K bytes - Click Count (0) -
docs/en/mkdocs.yml
show_symbol_type_heading: true show_symbol_type_toc: true nav: - FastAPI: index.md - features.md - Learn: - learn/index.md - python-types.md - async.md - environment-variables.md - virtual-environments.md - Tutorial - User Guide: - tutorial/index.md - tutorial/first-steps.md - tutorial/path-params.md - tutorial/query-params.mdCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 01 16:16:24 GMT 2026 - 9.9K bytes - Click Count (0)