yew/examples/multi_thread

multi_thread

You should compile a worker which have to be spawned in a separate thread:

cargo web build --bin native_worker --target wasm32-unknown-unknown