- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 660 for _wait (0.02 seconds)
-
docs/en/docs/advanced/async-tests.md
Then we can create an `AsyncClient` with the app, and send async requests to it, using `await`. {* ../../docs_src/async_tests/app_a_py39/test_main.py hl[9:12] *} This is the equivalent to: ```Python response = client.get('/') ``` ...that we used to make our requests with the `TestClient`. /// tip Note that we're using async/await with the new `AsyncClient` - the request is asynchronous. /// /// warningCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 4K bytes - Click Count (0) -
docs/ja/docs/async.md
# 並行処理と async / await *path operation 関数*のための `async def` に関する詳細と非同期 (asynchronous) コード、並行処理 (Concurrency)、そして、並列処理 (Parallelism) の背景について。 ## 急いでいますか? <abbr title="too long; didn't read (長すぎて読めない人のための要約という意味のスラング)"><strong>TL;DR:</strong></abbr> 次のような、`await` を使用して呼び出すべきサードパーティライブラリを使用している場合: ```Python results = await some_library() ``` 以下の様に `async def` を使用して*path operation 関数*を宣言します。 ```Python hl_lines="2" @app.get('/')
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:56:21 GMT 2025 - 27.7K bytes - Click Count (0) -
docs/en/docs/advanced/websockets.md
**FastAPI** provides the same `WebSocket` directly just as a convenience for you, the developer. But it comes directly from Starlette. /// ## Await for messages and send messages { #await-for-messages-and-send-messages } In your WebSocket route you can `await` for messages and send messages. {* ../../docs_src/websockets/tutorial001_py39.py hl[48:52] *} You can receive and send binary, text, and JSON data.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 5.7K bytes - Click Count (0) -
docs/pt/docs/advanced/websockets.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6K bytes - Click Count (0) -
tests/test_dependency_wrapped.py
return await func(*args, **kwargs) if inspect.isclass(func): return await run_in_threadpool(func, *args, **kwargs) dunder_call = getattr(func, "__call__", None) # noqa: B004 if iscoroutinefunction(dunder_call): return await dunder_call(*args, **kwargs) return await run_in_threadpool(func, *args, **kwargs) return wrapper
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 11.2K bytes - Click Count (0) -
docs/de/docs/advanced/async-tests.md
Dann können wir einen `AsyncClient` mit der App erstellen und mit `await` asynchrone Requests an ihn senden. {* ../../docs_src/async_tests/app_a_py39/test_main.py hl[9:12] *} Das ist das Äquivalent zu: ```Python response = client.get('/') ``` ... welches wir verwendet haben, um unsere Requests mit dem `TestClient` zu machen. /// tip | TippCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 4.5K bytes - Click Count (1) -
cmd/prepare-storage.go
} tries++ switch { case errors.Is(err, errNotFirstDisk): // Fresh setup, wait for first server to be up. logger.Info("Waiting for the first server to format the drives (elapsed %s)\n", getElapsedTime()) case errors.Is(err, errFirstDiskWait): // Fresh setup, wait for other servers to come up.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jul 12 20:51:54 GMT 2024 - 11.1K bytes - Click Count (1) -
cmd/erasure-sets.go
g := errgroup.WithNErrs(len(s.sets)) for index := range s.sets { g.Go(func() error { storageInfos[index] = s.sets[index].StorageInfo(ctx) return nil }, index) } // Wait for the go routines. g.Wait() for _, lstorageInfo := range storageInfos { storageInfo.Disks = append(storageInfo.Disks, lstorageInfo.Disks...) } return storageInfo }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 37K bytes - Click Count (1) -
docs/ru/docs/tutorial/request-files.md
* `seek(offset)`: Перейти к байту на позиции `offset` (`int`) в файле. * Например, `await myfile.seek(0)` перейдет к началу файла. * Это особенно удобно, если вы один раз выполнили команду `await myfile.read()`, а затем вам нужно прочитать содержимое файла еще раз. * `close()`: Закрыть файл. Поскольку все эти методы являются `async` методами, вам следует использовать "await" вместе с ними.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 11:24:39 GMT 2025 - 11.7K bytes - Click Count (0) -
cmd/http-tracer_test.go
_ = httpStats.toServerHTTPStats(false) _ = httpStats.totalS3Requests.Load(false) _ = httpStats.currentS3Requests.Load(false) time.Sleep(1 * time.Microsecond) } }(i) } wg.Wait() finalStats := httpStats.toServerHTTPStats(false) totalRequests := 0 for _, v := range finalStats.TotalS3Requests.APIStats { totalRequests += v } if totalRequests == 0 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 5.3K bytes - Click Count (0)