Commit 51212fe
authored
Add cease to output handles (#496)
In certain situations, a handle survives longer than we would like to wait
for a flush to happen. In this cases, an explicit call to cease can help
to indicate to the rest of the system that no more data follows
immediately, which is equivalent to dropping the handle.
Specifically, in async code the handle can be long-lived and survive await
points, which makes it more important to signal momentary completion to the
system.
Signed-off-by: Moritz Hoffmann <[email protected]>
Signed-off-by: Moritz Hoffmann <[email protected]>1 parent 01438ae commit 51212fe
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
224 | 229 | | |
225 | 230 | | |
226 | 231 | | |
| |||
0 commit comments