This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 6961cfa
committed
various fixes related to stream/future cancellation
Most of this is related to the delay between queuing an event (e.g. read
completion) and delivering it; a guest could cancel inbetween, and we should
allow that rather than trap.
Also, we need to be careful to invalidate any queued events as part of
cancellation, especially given that the guest could cancel and close a stream or
future before delivery.
This code is getting uglier with time and will likely need to be cleaned up and
refactored before it is upstreamed.
Fixes #84
Signed-off-by: Joel Dice <joel.dice@fermyon.com>1 parent a5436cc commit 6961cfa
3 files changed
Lines changed: 351 additions & 195 deletions
File tree
- crates
- misc/component-async-tests/tests/scenario
- wasmtime/src/runtime/component
- concurrent
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| |||
0 commit comments