Skip to content

Instantly share code, notes, and snippets.

@duanebester
Created December 9, 2019 01:04
Show Gist options
  • Save duanebester/dda9e031b78f78dc6051db27312db41c to your computer and use it in GitHub Desktop.
Save duanebester/dda9e031b78f78dc6051db27312db41c to your computer and use it in GitHub Desktop.
Process Stage 2
def processStage(stageNum: Int) = Flow[BufferedImage]
.async
.delay(1 seconds)
.map(bi => {
val info = s"Processing Stage: ${stageNum}"
wsActor ! TextMessage(info)
bi
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment