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

end of unit 2 (stash , unstash) #292

Open
sabbadino opened this issue Jun 5, 2019 · 1 comment
Open

end of unit 2 (stash , unstash) #292

sabbadino opened this issue Jun 5, 2019 · 1 comment

Comments

@sabbadino
Copy link

in https://github.com/petabridge/akka-bootcamp/blob/master/src/Unit-2/lesson5/README.md

We call Stash.Unstash() to pop off the message at the top of the Stash.
SHOULD BE
We call Stash.Unstash() to pop off the oldest message message at the top of the Stash.

@skydvr
Copy link
Contributor

skydvr commented Oct 16, 2019

But if I understand in correctly, Stash.Stash() specifically doesn't pop off the oldest message - it pops off the last message placed on the stash. To have the "oldest" message (first message placed on the stash) processed first by the actor, you'd have to use UnstashAll(), which preserves the FIFO ordering of the stash.

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

No branches or pull requests

2 participants