Skip to content

Instantly share code, notes, and snippets.

@EricDw
Last active November 21, 2018 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EricDw/51b547b86e1e709c1481236d3eb89ec9 to your computer and use it in GitHub Desktop.
Save EricDw/51b547b86e1e709c1481236d3eb89ec9 to your computer and use it in GitHub Desktop.
The setup code for making a pipeline and a demonstration of how it should work inside.
private lateinit var intToStringPipeline: Pipeline<Int, String>
@Before
fun setUp() {
intToStringPipeline = CoroutineTestingScope.pipeline() {
for (number in channel) {
send { number.toString() }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment