Calculate fibbonnaci value of a number in the worker thread, without blocking the main thread.
You can access a live version here:
do ./build.sh && ./serve.sh
This example is NOT built with trunk. Multi-threading in yew does not currently build with Trunk, due to issues described in the multi_thread example.
Instead the example is built with wasm-pack
directly.
To build, run ./build.sh
.
You can then serve the build, with ./serve.sh
.
This example uses python3 as a server, any alternative will work.
- insou22 for writing up the demo.
- https://github.com/yvt/img2text -- for how to make web workers compile in wasm