Skip to content

Instantly share code, notes, and snippets.

@nachinius
Created April 10, 2019 01:31
Show Gist options
  • Save nachinius/dc2b870472b4cd2d9b3e1cbf68adf810 to your computer and use it in GitHub Desktop.
Save nachinius/dc2b870472b4cd2d9b3e1cbf68adf810 to your computer and use it in GitHub Desktop.
// Utilities to temporarily have unimplemented parts of the program
from reactive programms edx course
// Utilities to temporarily have unimplemented parts of the program
private def unimplementedFlow[A, B, C]: Flow[A, B, C] =
Flow.fromFunction[A, B](_ => ???).mapMaterializedValue(_ => ??? : C)
private def unimplementedSink[A, B]: Sink[A, B] = Sink.ignore.mapMaterializedValue(_ => ??? : B)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment