- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 515 for awaiter (0.1 sec)
-
fastapi/routing.py
router = APIRouter() @router.websocket("/ws") async def websocket_endpoint(websocket: WebSocket): await websocket.accept() while True: data = await websocket.receive_text() await websocket.send_text(f"Message text was: {data}") app.include_router(router) ``` """
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 172.1K bytes - Viewed (0) -
misc/go_android_exec/main.go
code, err := adbRun(cmd) signal.Reset(syscall.SIGQUIT) close(quit) return code, err } type exitCodeFilter struct { w io.Writer // Pass through to w exitRe *regexp.Regexp buf bytes.Buffer } func newExitCodeFilter(w io.Writer) (*exitCodeFilter, string) { const exitStr = "exitcode=" // Build a regexp that matches any prefix of the exit string at the end of
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0) -
docs/ja/docs/advanced/websockets.md
``` /// note | "技術詳細" `from starlette.websockets import WebSocket` を使用しても構いません. **FastAPI** は開発者の利便性のために、同じ `WebSocket` を提供します。しかし、こちらはStarletteから直接提供されるものです。 /// ## メッセージの送受信 WebSocketルートでは、 `await` を使ってメッセージの送受信ができます。 ```Python hl_lines="48-52" {!../../docs_src/websockets/tutorial001.py!} ``` バイナリやテキストデータ、JSONデータを送受信できます。 ## 試してみる ファイル名が `main.py` である場合、以下の方法でアプリケーションを実行します。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.2K bytes - Viewed (0) -
cmd/tier_gen.go
default: err = dc.Skip() if err != nil { err = msgp.WrapError(err) return } } } return } // EncodeMsg implements msgp.Encodable func (z *TierConfigMgr) EncodeMsg(en *msgp.Writer) (err error) { // map header, size 1 // write "Tiers" err = en.Append(0x81, 0xa5, 0x54, 0x69, 0x65, 0x72, 0x73) if err != nil { return } err = en.WriteMapHeader(uint32(len(z.Tiers))) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 20 00:53:08 UTC 2023 - 4K bytes - Viewed (0) -
cmd/metacache-stream_test.go
"src/compress/lzw/", "src/compress/lzw/reader.go", "src/compress/lzw/reader_test.go", "src/compress/lzw/writer.go", "src/compress/lzw/writer_test.go", "src/compress/testdata/", "src/compress/testdata/e.txt", "src/compress/testdata/gettysburg.txt", "src/compress/testdata/pi.txt", "src/compress/zlib/", "src/compress/zlib/example_test.go", "src/compress/zlib/reader.go", "src/compress/zlib/reader_test.go", "src/compress/zlib/writer.go", "src/compress/zlib/writer_test.go"} func loadMetacacheSample(t testing.TB)...
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 15K bytes - Viewed (0) -
cmd/metacache_gen.go
err = dc.Skip() if err != nil { err = msgp.WrapError(err) return } } } return } // EncodeMsg implements msgp.Encodable func (z *metacache) EncodeMsg(en *msgp.Writer) (err error) { // map header, size 13 // write "end" err = en.Append(0x8d, 0xa3, 0x65, 0x6e, 0x64) if err != nil { return } err = en.WriteTime(z.ended) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Nov 08 18:26:08 UTC 2021 - 10K bytes - Viewed (0) -
src/archive/tar/reader.go
// It is only the responsibility of every exported method of Reader to // ensure that this error is sticky. err error } type fileReader interface { io.Reader fileState WriteTo(io.Writer) (int64, error) } // NewReader creates a new [Reader] reading from r. func NewReader(r io.Reader) *Reader { return &Reader{r: r, curr: ®FileReader{r, 0}} }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java
} return context.buildEventListener; } protected BuildEventListener doDetermineBuildEventListener(C context) { Consumer<String> writer = determineWriter(context); return new SimpleBuildEventListener(writer); } @Override protected void customizeSettingsRequest(C context, SettingsBuilderRequest settingsBuilderRequest) { if (context.eventSpyDispatcher != null) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 29.8K bytes - Viewed (0) -
docs/em/docs/advanced/events.md
```Python with open("file.txt") as file: file.read() ``` ⏮️ ⏬ 🐍, 📤 **🔁 🔑 👨💼**. 👆 🔜 ⚙️ ⚫️ ⏮️ `async with`: ```Python async with lifespan(app): await do_stuff() ``` 🕐❔ 👆 ✍ 🔑 👨💼 ⚖️ 🔁 🔑 👨💼 💖 🔛, ⚫️❔ ⚫️ 🔨 👈, ⏭ 🛬 `with` 🍫, ⚫️ 🔜 🛠️ 📟 ⏭ `yield`, & ⏮️ ❎ `with` 🍫, ⚫️ 🔜 🛠️ 📟 ⏮️ `yield`. 👆 📟 🖼 🔛, 👥 🚫 ⚙️ ⚫️ 🔗, ✋️ 👥 🚶♀️ ⚫️ FastAPI ⚫️ ⚙️ ⚫️.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.1K bytes - Viewed (0) -
api/go1.10.txt
pkg archive/tar, type Header struct, PAXRecords map[string]string pkg archive/zip, method (*Writer) SetComment(string) error pkg archive/zip, type FileHeader struct, Modified time.Time pkg archive/zip, type FileHeader struct, NonUTF8 bool pkg bufio, method (*Reader) Size() int pkg bufio, method (*Writer) Size() int pkg crypto/tls, const ECDSAWithSHA1 = 515 pkg crypto/tls, const ECDSAWithSHA1 SignatureScheme
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Feb 06 05:00:01 UTC 2018 - 30.1K bytes - Viewed (0)