Releases: vladopajic/go-actor
Releases · vladopajic/go-actor
v0.8.1
Changes:
- add new option
OptOnStopCombined(func ())
that can be used as option for combined actor
v0.8.0
Changes:
Combine
function now returns builder that builds combined actor- New options is added
OptStopTogether
that stops all combined actors when any actor stops
v0.7.1
- License changed to permissive license (MIT).
- Added
TestSuite
- basic tests for actors - Removed option
OptUsingChan
in favor of new optionOptAsChan
MailboxSender
interface changed to improve comparability for remote communication.
Interface changed from:
type MailboxSender[T any] interface {
SendC() chan<- T
}
to:
type MailboxSender[T any] interface {
Send(ctx Context, msg T) error
}
v0.7.0
FanOut
changed to accept receive channel- interfaces
StartableWorker
andStoppableWorker
are now exported OnStart
andOnStop
callbacks order execution changed: first these are executed from worker (if any), then from options (if any)- test improvements (more test, more coverage)
- repo CI now executes
go-test-coverage
action
v0.6.0
- Composed
Mailbox
interface usingMailboxSender
andMailboxReceiver
interfaces FanOut
utility refactored to use newMailboxSender
andMailboxReceiver
interfaces- Added
NewMailboxes
constructor for creating multiple mailboxes
v0.5.1
Worker
can optionally implementOnStart(Context)
andOnStop()
methods which will have same effect as if those are provided viaOptOnStart
andOptOnStop
respectively
v0.5.0
OnStart
now receivesContext
as first argumentContext
is ended beforeOnStop
callback is invoked
v0.4.1
Old releases with version v1.x.x
were retracted. This library will follow v0.x.x
versioning going forward until it reaches stable interface.
v0.4.0
Actor
will endContext
onWorkerEnd
signal- Add
actor.Idle
- Add
Mailbox
implementation with native channels - Drop
StartAll
andStopAll
functions
v.0.3.1
Mailbox
use faster queue implementation