mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Web Worker Fib
Calculate fibrillation value of a number in the worker thread, without blocking the main thread.
Concepts
The example illustrates how to use yew-agent to send tasks to a worker thread in a Yew application.
Thanks to
- insou22 for writing up the demo.
- https://github.com/yvt/img2text -- for how to make web workers compile in wasm
Running
Run this application with the trunk development server:
trunk serve --open