Releases: fdeantoni/tiny-tokio-actor
Release v0.3.5
v0.3.4
Contains code cleanup/refactoring.
Full Changelog: v0.3.3...v0.3.4
v0.3.3
v0.3.2
Removed Clone requirement from Actor
Actor startup supervision
The actor trait now includes a supervision strategy that defines what the actor does when it fails to start up properly (i.e. Err is returned by pre_start
). There are currently two options: Stop
or Retry
.
For Retry
a RetryStrategy
can be defined. You can use the provided strategies: NoIntervalStrategy
which will immedately retry an actor for a fixed amount of retries; 'FixedIntervalStategywhich will retry an actor a fixed amount of times with a fixed startup delay period between each retry;
ExponentialBackoffStrategy` which will retry an actor a fixed amount of times with an exponential backoff delay between each retry.
Actor retry behaviour by default is to simply call pre_start
again, but this can be overridden by defining your own pre_restart
method in the Actor trait implementation.
v0.2.3
A get_or_create_actor function added
This release contains some minor improvements as well as a new get_or_create method to get an actor or create one if none exists yet.
Revised generics.
The order of generics has been adjusted, putting SystemEvent always first.
Minor API change
The get_name
method in ActorSystem has been renamed to simply name
, and ActorError::Create
has been renamed to ActorError::Exists
taking an ActorPath
as property.