Created
November 22, 2019 16:49
-
-
Save vigoo/ccf5d6bc38ce7a5803316c919ad47e51 to your computer and use it in GitHub Desktop.
prox 2/16
This file contains hidden or 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
val utf8Decode: Sink[ByteString, Future[String]] = | |
Flow[ByteString] | |
.reduce(_ ++ _) | |
.map(_.utf8String) | |
.toMat(Sink.head)(Keep.right) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment