Created
August 23, 2015 21:06
-
-
Save rocketpages/cba443bdd743d33e255e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// return the freshest element when there's capacity downstream, drop everything else | |
val droppyStream: Flow[Message, Message] = | |
Flow[Message].conflate(seed = identity)((lastMessage, newMessage) => newMessage) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment