Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes destructive commands are executed before 'starting feedback' messages are posted #22

Open
TimCastelijns opened this issue Sep 12, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@TimCastelijns
Copy link
Owner

TimCastelijns commented Sep 12, 2018

This can be solved by providing a way for components that depend on Actor to wait until the outboundqueue is empty.

This might be a coroutine like suspend fun processPendingMessages() that does busy waiting, similar to what happens in die(). The depending component can then call actor.processPendingMessages().await()

@TimCastelijns TimCastelijns added the bug Something isn't working label Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant