Skip to content

Async #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: next
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
982925e
feat: implement basic async
WhaleKit Jan 1, 2025
ff0c467
test: add example/test for async
WhaleKit Jan 1, 2025
30292a6
remove unnecessary mut for making exported memory
WhaleKit Jan 5, 2025
9ff3d6d
fix: support for multiple resumes on single suspendedFucn now works
WhaleKit Jan 5, 2025
b66cd50
feat: add support for suspending execution by timer, atomic flag or u…
WhaleKit Jan 5, 2025
250402c
ci: add test for suspending and resuming wasm code
WhaleKit Jan 5, 2025
3aa69da
chore: fix codestyle in host_coro example
WhaleKit Jan 5, 2025
d59d31f
fix bug with br_if instruction corrupting stack
WhaleKit Jan 8, 2025
9454509
Merge branch 'next' into async
WhaleKit Jan 8, 2025
a0bfa66
make wasm_resume nominally look like a test
WhaleKit Jan 8, 2025
9a90550
fix: building with no-std
WhaleKit Jan 8, 2025
b49c1c4
support suspending start function when instantiating module
WhaleKit Jan 9, 2025
9b7496b
ci: add feature to run test-suite with async suspends
WhaleKit Jan 9, 2025
89d9dcc
minor: clippy, names, qol function
WhaleKit Jan 9, 2025
ff933a2
chore: reorganized some code
WhaleKit Jan 11, 2025
b73ab18
codestyle, relax bounds on YieldedValue/ResumeArgument
WhaleKit Jan 11, 2025
ae83085
feat: added call_coro to typed fucn handle, some code reorganization …
WhaleKit Jan 11, 2025
a41f68b
fix: fix no-std build
WhaleKit Jan 11, 2025
27c7d66
move resume test
WhaleKit Jan 12, 2025
450881e
feat: all async/resume functionality is now feature-gated
WhaleKit Jan 13, 2025
cf85b34
fix various issues
WhaleKit Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make wasm_resume nominally look like a test
  • Loading branch information
WhaleKit committed Jan 8, 2025
commit a0bfa660f62c8c522d641497dfe3f7056f694e39
1 change: 1 addition & 0 deletions tests/wasm_resume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use tinywasm::{
use tinywasm::{Extern, Imports};
use wat;

#[test]
fn main() -> std::result::Result<(), eyre::Report> {
println!("\n# testing with callback");
let mut cb_cond = |store: &mut Store| {
Expand Down
Loading