Back to Yew

Web Worker Prime

examples/web_worker_prime/README.md

0.18.0482 B
Original Source

Web Worker Prime

Calculate primes until stop button is pressed, without blocking the main thread.

Concepts

The example illustrates how to use reactor agents to offload CPU bound tasks to a worker thread in a Yew application.

Running

Run this application with the trunk development server:

bash
trunk serve --open