Skip to content

Conversation

@vladopajic
Copy link
Owner

@vladopajic vladopajic commented Mar 19, 2025

sending on unstated mailbox is not returning error anymore.

this was changed because if mailbox needed by actor is started after actor, Send() will result with error. in this situation it makes more sense for actor to block, since mailbox will get started soon.

example:

a := Combine(a1, a2, mbx)
a.Start()

in above example, actors a1 or a2 can potentially send data to mailbox mbx, but since it's not started it will result with en error. this situation is better for them if they are blocked until mailbox is not started.

@github-actions
Copy link

go-test-coverage report:

File coverage threshold (100%) satisfied:	PASS
Total coverage threshold (100%) satisfied:	PASS
Total test coverage: 100% (312/312)

@vladopajic vladopajic merged commit b23b73b into main Mar 19, 2025
6 checks passed
@vladopajic vladopajic deleted the send-no-error branch March 19, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants