akka-bootcamp icon indicating copy to clipboard operation
akka-bootcamp copied to clipboard

end of unit 2 (stash , unstash)

Open sabbadino opened this issue 5 years ago • 1 comments

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.

sabbadino avatar Jun 05 '19 14:06 sabbadino

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.

skydvr avatar Oct 16 '19 22:10 skydvr