Releases: tonarino/actor
Releases · tonarino/actor
0.11.0
What's Changed
- Stop all actors at once instead of stopping/joining threads sequentially by @bschwind in #85
- Add default impl for
Actor::name(), reorder methods, small cleanups by @strohel in #92
Chores
Full Changelog: v0.10.0...v0.11.0
0.10.0
What's Changed
- Cache last published event by @goodhoko in #87
⚠️ BREAKING:Eventtypes now must beSend+Sync
- Error reporting QoL by @strohel in #88
⚠️ BRAKING:Actor::Errornow must beDisplay(and no longer needs to beDebug)
- Make
Actor::started(),stopped()fallible by @strohel in #89⚠️ BREAKING:Actor::started(),Actor::stopped()signatures have changed, you need to adapt your code
New Contributors
Full Changelog: v0.9.0...v0.10.0
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
tonari-actor 0.7.0
- [breaking]
ActorError::ChannelDisconnectedenum variant has been removed. Code branch that produced it was deemed unreachable. - [breaking]
Recipient::remaining_capacitymethod has been removed. Priority channels should should remove the need for it. - Added support for priority channels. Each actor can define optional
priority(&Self::Message)method to determine priority for incoming messages before they are being sent. Available priorities areNormalandHigh. All high-priority messages are delivered before normal priority messages. - Actor inbox capacities can be now set independently using the new
Capacitytype. Conversion fromusizeis provided, so existing code should continue to work. - Underlying channel implementation has been changed from
crossbeam-channeltoflume. According to a simple benchmark this has improved maximum throughput slightly; addition of priority channels has potentially lowered the throughput again, but the net result should be still positive. See #61 and #62.
tonari-actor 0.6.0
- [breaking] Simple timer support from #53 has been reverted:
Context::send_ {once,recurring}_to(_self)()have been replaced by thetimedmodule below and are no longer available.shutdown()method has moved back fromContexttoSystemHandle.
- Actors can now set timeout for receiving the next message using
Context::set_{deadline,timeout}(), which triggers new callbackActor::deadline_passed(). - [breaking]
Context::myselfchanged fromAddr<A>toRecipient<A::Message>. Context's generic parameter is nowM(message) rather thanA: Actor. - [breaking] Actors must now specify their context type by providing
type Context. Most actors should usetype Context = Context<Self::Message>. Callback methods signatures now containsSelf::Contextinstead ofContext<Self::Message>. - The
timedmodule was introduced with helpers to deliver delayed or recurring messages to actors. - [breaking] The
SendErrorAPI has changed and now containsrecipient_nameto help identifying message addressee.