Skip to content

Releases: tonarino/actor

0.10.0

13 Aug 13:32
Compare
Choose a tag to compare

What's Changed

  • Cache last published event by @goodhoko in #87
    • ⚠️ BREAKING: Event types now must be Send + Sync
  • Error reporting QoL by @strohel in #88
    • ⚠️ BRAKING: Actor::Error now must be Display (and no longer needs to be Debug)
  • 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

31 May 07:35
4ce67b5
Compare
Choose a tag to compare

What's Changed

  • Derive Default (clippy 1.68 lint) by @strohel in #76
  • Fix clippy 1.73 lints, update lint configuration by @strohel in #78
  • Make spawn builder harder to misuse by @mbernat in #83

New Contributors

Full Changelog: v0.8.3...v0.9.0

0.8.3

28 Feb 11:30
Compare
Choose a tag to compare

What's Changed

  • Fix timed messages for busy actors by @strohel in #73

Full Changelog: v0.8.2...v0.8.3

0.8.2

07 Sep 08:52
Compare
Choose a tag to compare

What's Changed

  • Allow specifying default capacities on actors themselves in #66

Full Changelog: v0.8.1...v0.8.2

0.8.1

14 Jun 05:55
Compare
Choose a tag to compare

What's Changed

  • Publisher/subscriber system was added in #67

Full Changelog: v0.8.0...v0.8.1

0.8.0

17 Feb 15:40
Compare
Choose a tag to compare

What's Changed

  • Add priority field to SendError, DisconnectedError by @strohel in #64
  • Move .recipient() from Addr to Recipient by @strohel in #65
  • Make Capacity fields normal, hish public by @strohel in #65
  • Update dependencies

Full Changelog: 0.7.0...v0.8.0

tonari-actor 0.7.0

24 Aug 21:36
Compare
Choose a tag to compare
  • [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 are Normal and High. All high-priority messages are delivered before normal priority messages.
  • Actor inbox capacities can be now set independently using the new Capacity type. Conversion from usize is provided, so existing code should continue to work.
  • Underlying channel implementation has been changed from crossbeam-channel to flume. 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

29 Jul 10:11
22cf142
Compare
Choose a tag to compare
  • [breaking] Simple timer support from #53 has been reverted:
    • Context::send_ {once,recurring}_to(_self)() have been replaced by the timed module below and are no longer available.
    • shutdown() method has moved back from Context to SystemHandle.
  • Actors can now set timeout for receiving the next message using Context::set_{deadline,timeout}(), which triggers new callback Actor::deadline_passed().
  • [breaking] Context::myself changed from Addr<A> to Recipient<A::Message>. Context's generic parameter is now M (message) rather than A: Actor.
  • [breaking] Actors must now specify their context type by providing type Context. Most actors should use type Context = Context<Self::Message>. Callback methods signatures now contains Self::Context instead of Context<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 contains recipient_name to help identifying message addressee.

tonari-actor 0.5.0

13 May 14:40
6495dbb
Compare
Choose a tag to compare

Includes simple timer from #52 (issue #14). Note that the API may change in future releases.

tonari-actor 0.4.0

03 Mar 02:02
Compare
Choose a tag to compare

Updates the signatures of the SpawnBuilder to allow for more relaxed constraints around Send-ability depending on the way an actor is spawned.