You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,15 @@
1
+
# 0.6.0
2
+
3
+
- add error handling
4
+
-`ActorBuilder.spawn()` now returns a Result, containing either the `ActorWrapper<A>` or an `ActorError`
5
+
- added `ActorResult` that is returned by all relevant `Actor` functions
6
+
- configures how the Actor should proceed
7
+
- Proper panic handling now in all parts of the `Actor` and `Handler<M>` and `ActorFactory<A>`
8
+
- panic now triggers `Actor.on_panic` providing the source of panic and allows User to determine how to proceed
9
+
-`Actor.on_panic` is allowed to panic once and will be re-triggered in that case. If another panic happens in the retry, the Actor will be stopped
10
+
- handling a panic within `ActorFactory<A>.new_actor()` by returning `ActorResult::Restart()` in `Actor.on_panic` can trigger a restart loop that will block the thread until `ActorFactory<A>.new_actor()` was successful
11
+
- replaced `RestartPolicy` with `ActorResult`
12
+
1
13
# 0.5.0
2
14
3
15
- added `send_after` to `ActorWrapper<A>` to allow sending of delayed messages
0 commit comments