A tiny library for writing concurrent programs in Go using actor model
MIT License
Bot releases are visible (Hide)
Changes:
Braking changes:
OptMinCapacity
and OptMailbox
where removed in favor of single option for setting capacity OptCapacity
.Full Changelog: https://github.com/vladopajic/go-actor/compare/v0.8.4...v0.9.0
Published by vladopajic 9 months ago
Changes:
OptOnStartCombined(func (Context))
that can be used as option for combined actorFull Changelog: https://github.com/vladopajic/go-actor/compare/v0.8.3...v0.8.4
Published by vladopajic 11 months ago
Changes:
receiveC
and sendC
are created with small buffer to allow better asynchronicityreceiveC
if there is space in bufferMailbox.Send(...)
is called for non-running mailboxPublished by vladopajic 11 months ago
Changes:
OptStopAfterReceivingAll()
that will stop mailbox only after all messages have been received.Published by vladopajic 12 months ago
Published by vladopajic 12 months ago
Changes:
OptOnStopCombined(func ())
that can be used as option for combined actorPublished by vladopajic 12 months ago
Changes:
Combine
function now returns builder that builds combined actorOptStopTogether
that stops all combined actors when any actor stopsPublished by vladopajic about 1 year ago
License changed to permissive license (MIT).
Published by vladopajic over 1 year ago
FanOut
changed to accept receive channelStartableWorker
and StoppableWorker
are now exportedOnStart
and OnStop
callbacks order execution changed: first these are executed from worker (if any), then from options (if any)go-test-coverage
actionPublished by vladopajic over 1 year ago
Mailbox
interface using MailboxSender
and MailboxReceiver
interfacesFanOut
utility refactored to use new MailboxSender
and MailboxReceiver
interfacesNewMailboxes
constructor for creating multiple mailboxesPublished by vladopajic almost 2 years ago
Worker
can optionally implement OnStart(Context)
and OnStop()
methods which will have same effect as if those are provided via OptOnStart
and OptOnStop
respectivelyPublished by vladopajic almost 2 years ago
OnStart
now receives Context
as first argumentContext
is ended before OnStop
callback is invokedPublished by vladopajic almost 2 years ago
Old releases with version v1.x.x
were retracted. This library will follow v0.x.x
versioning going forward until it reaches stable interface.
Published by vladopajic almost 2 years ago
Mailbox
use faster queue implementationPublished by vladopajic almost 2 years ago
Actor
will end Context
on WorkerEnd
signalactor.Idle
Mailbox
implementation with native channelsStartAll
and StopAll
functions