Releases: tonarino/actor
Releases · tonarino/actor
0.10.0
What's Changed
- Cache last published event by @goodhoko in #87
⚠️ BREAKING:Event
types now must beSend
+Sync
- Error reporting QoL by @strohel in #88
⚠️ BRAKING:Actor::Error
now 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::ChannelDisconnected
enum variant has been removed. Code branch that produced it was deemed unreachable. - [breaking]
Recipient::remaining_capacity
method 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 areNormal
andHigh
. All high-priority messages are delivered before normal priority messages. - Actor inbox capacities can be now set independently using the new
Capacity
type. Conversion fromusize
is provided, so existing code should continue to work. - Underlying channel implementation has been changed from
crossbeam-channel
toflume
. 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 thetimed
module below and are no longer available.shutdown()
method has moved back fromContext
toSystemHandle
.
- Actors can now set timeout for receiving the next message using
Context::set_{deadline,timeout}()
, which triggers new callbackActor::deadline_passed()
. - [breaking]
Context::myself
changed 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::Context
instead ofContext<Self::Message>
. - The
timed
module was introduced with helpers to deliver delayed or recurring messages to actors. - [breaking] The
SendError
API has changed and now containsrecipient_name
to help identifying message addressee.
tonari-actor 0.5.0
tonari-actor 0.4.0
Updates the signatures of the SpawnBuilder
to allow for more relaxed constraints around Send
-ability depending on the way an actor is spawned.