This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 5e7d4b2
committed
combine fiber abstractions from
A long time ago, when I first started implementing CM async, I cut-and-pasted
`async_.rs`'s `FiberFuture` and heavily modified it. Both have evolved
separately since then, and now that the CM async work has generally stabilized
it's time to unify them.
This creates a new `runtime::fiber` submodule which `async_.rs` and
`concurrent.rs` share. The central type is `StoreFiber`, which is a more
versatile version of `FiberFuture`, supporting fibers which can either retain
exclusive access to the store across suspend points or release it, allowing the
store to be used by the root event loop and/or other fibers to run before the
original fiber resumes.
Signed-off-by: Joel Dice <joel.dice@fermyon.com>async_.rs and concurrent.rs
1 parent 336c85c commit 5e7d4b2
16 files changed
Lines changed: 822 additions & 1352 deletions
File tree
- crates/wasmtime/src
- runtime
- component
- externals
- func
- store
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments