docs: add code fences to Example: docstring blocks (#2104)
This commit is contained in:
parent
c0328540c9
commit
cb07adeca3
1 changed files with 83 additions and 18 deletions
|
|
@ -60,8 +60,10 @@ class RequestResponder(Generic[ReceiveRequestT, SendResultT]):
|
|||
cancellation handling:
|
||||
|
||||
Example:
|
||||
```python
|
||||
with request_responder as resp:
|
||||
await resp.respond(result)
|
||||
```
|
||||
|
||||
The context manager ensures:
|
||||
1. Proper cancellation scope setup and cleanup
|
||||
|
|
|
|||
Loading…
Reference in a new issue