Commit db22865
committed
graph: document drain unbounded-wait risk and wait_for workaround
Drain blocks until every queued event has been delivered, so a slow or
hung observer can hold the calling process indefinitely. Note this in
the drain() docstring with the asyncio.wait_for stop-gap pattern. A
spec proposal for a first-class deadline parameter is in flight; this
docstring nudge holds until it lands.
Also bump the docstring's spec version reference from v0.3.0 to v0.6.0
to match the rest of the file.1 parent 3d7de3d commit db22865
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
167 | 176 | | |
168 | 177 | | |
169 | 178 | | |
| |||
0 commit comments