# Web Worker Prime

[![Demo](https://img.shields.io/website?label=demo&url=https%3A%2F%2Fexamples.yew.rs%2Fweb_worker_prime)](https://examples.yew.rs/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
```
