Releases: vladopajic/go-actor
Releases · vladopajic/go-actor
v0.8.2
Changes:
- add new option
OptStopAfterReceivingAll()that will stop mailbox only after all messages have been received.
release to retract releases with v1.x.x
v1.0.6 retract update
v0.8.1
Changes:
- add new option
OptOnStopCombined(func ())that can be used as option for combined actor
v0.8.0
Changes:
Combinefunction now returns builder that builds combined actor- New options is added
OptStopTogetherthat 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
OptUsingChanin favor of new optionOptAsChan MailboxSenderinterface 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
FanOutchanged to accept receive channel- interfaces
StartableWorkerandStoppableWorkerare now exported OnStartandOnStopcallbacks 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-coverageaction
v0.6.0
- Composed
Mailboxinterface usingMailboxSenderandMailboxReceiverinterfaces FanOututility refactored to use newMailboxSenderandMailboxReceiverinterfaces- Added
NewMailboxesconstructor for creating multiple mailboxes
v0.5.1
Workercan optionally implementOnStart(Context)andOnStop()methods which will have same effect as if those are provided viaOptOnStartandOptOnStoprespectively
v0.5.0
OnStartnow receivesContextas first argumentContextis ended beforeOnStopcallback 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.