Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile authored Sep 27, 2023
1 parent a949f7c commit d647f86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions website/blog/2023-09-23-release-0-21.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ html! {

Yew 0.21 brings a complete rewrite of `yew-agent`. This streamlines and simplifies the way workers operate. Here's what you need to know:

- **Unification of PublicWorker and PrivateWorker:** We've brought PublicWorker and PrivateWorker together, creating a single, consistent worker type that's easier to work with.

- **Introducing WorkerSpawner:** Say goodbye to the old `Worker::bridge()` method. Now, you can use the WorkerSpawner with a builder pattern to spawn workers. It's a more intuitive way to create workers, and it always spawns a new one.
- **Introducing Providers:** Say goodbye to the old `Worker::bridge()` method. Now, you can use the use `WorkerProvider` / `ReactorProvider` / `OneshotProvider` as per your need, by creating them using the hooks.

- **WorkerLink to WorkerScope:** We've removed WorkerLink in favor of WorkerScope. This change simplifies the worker architecture, making it more straightforward to manage and maintain.

- **WorkerBridge::fork():** For those who relied on PublicWorker functionality, we've introduced WorkerBridge::fork(). It allows you to "fork" the bridge with a different callback and HandlerId.

There are two types of agents to be used, depending upon the situation:

Expand Down

0 comments on commit d647f86

Please sign in to comment.