yew/examples/web_worker_fib
Muhammad Hamza c28a71e78e
Use nightly for Rustfmt (#2630)
* add rustfmt.toml, use nightly in CI, update contributing docs

* run `cargo +nightly fmt`
2022-04-21 23:21:15 +05:00
..
2022-04-21 23:21:15 +05:00
2021-11-23 11:05:01 +00:00
2021-11-23 11:05:01 +00:00
2021-11-23 11:05:01 +00:00
2021-11-23 11:05:01 +00:00

Web Worker Demo

Calculate fibbonnaci value of a number in the worker thread, without blocking the main thread.

You can access a live version here:

Running this example

do ./build.sh && ./serve.sh

notes

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.

Thanks to