val outputListing: FullListing = //...
val inputListing: RawListing = //...
val save = new MemorySink[ListingResults]
val processor = new ListingProcessor(_ => Task.now(Some(outputListing)), save)
processor.processListing(Seq(inputListing))
// resolve asynchrony
save.last should beSome(Seq(outputListing))
Created
May 28, 2018 06:09
-
-
Save wjlow/0e90521c0005fec931ce2a22a8b9ecf4 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment