d3c4e4a20a
This introduces a `Pender` struct with enum cases for thread-mode, interrupt-mode and custom callback executors. This avoids calls through function pointers when using only the thread or interrupt executors. Faster, and friendlier to `cargo-call-stack`. `embassy-executor` now has `arch-xxx` Cargo features to select the arch and to enable the builtin executors (thread and interrupt). |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
index.html | ||
README.md |
WASM example
Examples use a CLI tool named wasm-pack
to build this example:
cargo install wasm-pack --version 0.9.1
Building
To build the example, run:
wasm-pack build --target web
Running
To run the example, start a webserver server the local folder:
python -m http.server
Then, open a browser at https://127.0.0.1:8000 and watch the ticker print entries to the window.